Skip to content

Commit

Permalink
fix: wrong typing
Browse files Browse the repository at this point in the history
  • Loading branch information
zoruka committed Jan 9, 2025
1 parent c83efd9 commit 55879a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/appkit/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1253,8 +1253,8 @@ export class AppKit {

this.setUser({ ...(AccountController.state.user || {}), email: user.email })

const preferredAccountType =
user.preferredAccountType || OptionsController.state.defaultAccountTypes[namespace]
const preferredAccountType = (user.preferredAccountType ||
OptionsController.state.defaultAccountTypes[namespace]) as W3mFrameTypes.AccountType
this.setPreferredAccountType(preferredAccountType, namespace)

const userAccounts = user.accounts?.map(account =>
Expand Down

0 comments on commit 55879a7

Please sign in to comment.