diff --git a/layer/store/wallet.ts b/layer/store/wallet.ts index 58e2db1..bbca3ea 100644 --- a/layer/store/wallet.ts +++ b/layer/store/wallet.ts @@ -284,8 +284,8 @@ export const useSharedWalletStore = defineStore('sharedWallet', { ) { const walletStore = useSharedWalletStore() - walletStrategy.disconnect() - walletStrategy.setWallet(wallet) + await walletStrategy.disconnect() + await walletStrategy.setWallet(wallet) if (options?.privateKey) { walletStrategy.setOptions({ privateKey: options.privateKey })