From bbd9b4d59b935f094fe49be7487550c4cd717bf1 Mon Sep 17 00:00:00 2001 From: shane-moore Date: Fri, 9 Feb 2024 09:37:40 -0800 Subject: [PATCH] chore: connect wallet before emit event --- layer/store/wallet.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/layer/store/wallet.ts b/layer/store/wallet.ts index 27341b77..2b61c4b9 100644 --- a/layer/store/wallet.ts +++ b/layer/store/wallet.ts @@ -134,11 +134,11 @@ export const useSharedWalletStore = defineStore('sharedWallet', { modalStore.closeAll() - useEventBus(EventBus.WalletConnected).emit() - - walletStore.$patch({ + walletStore.$patch({ walletConnectStatus: WalletConnectStatus.connected }) + + useEventBus(EventBus.WalletConnected).emit() }, async checkIsMetamaskInstalled() {