Skip to content

Commit

Permalink
fix: accounts not syncing on mount
Browse files Browse the repository at this point in the history
  • Loading branch information
magiziz committed Sep 23, 2024
1 parent eb5a102 commit 9595a4f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/appkit/src/universal-adapter/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -526,9 +526,10 @@ export class UniversalAdapterClient {
this.appKit?.setPreferredAccountType(preferredAccountType, chainNamespace)
this.appKit?.setCaipAddress(address, chainNamespace)
this.syncConnectedWalletInfo()
this.syncAccounts()
await Promise.all([this.appKit?.setApprovedCaipNetworksData(chainNamespace)])
}

this.syncAccounts()
})
} else {
this.appKit?.resetWcConnection()
Expand Down

0 comments on commit 9595a4f

Please sign in to comment.