Skip to content

Commit

Permalink
Use state.map helper method instead of State.Map constructor function
Browse files Browse the repository at this point in the history
  • Loading branch information
ChiriVulpes committed Dec 3, 2024
1 parent 1dca41b commit 49dc44b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/component/OAuthService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ interface OAuthService extends Checkbutton, OAuthServiceExtensions {
const OAuthService = Component.Builder((component, service: AuthService, reauthDangerToken?: DangerTokenType): OAuthService => {
const authedAtStart = !!Session.Auth.get(service.name)

const authorisationState = State.Map(component, Session.Auth.authorisations, authorisations =>
const authorisationState = Session.Auth.authorisations.map(component, authorisations =>
authorisations.find(authorisation => authorisation.service === service.name))

const isAuthed = State.Truthy(component, authorisationState)
Expand Down

0 comments on commit 49dc44b

Please sign in to comment.