From 9fb69f6e687fcc2e20d630e2c853d1068e73ba3f Mon Sep 17 00:00:00 2001 From: Reza Rahemtola Date: Sun, 27 Oct 2024 18:36:01 +0900 Subject: [PATCH] fix(account): Double requests for signature --- src/stores/account.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/stores/account.ts b/src/stores/account.ts index 48fa013..ed014b6 100644 --- a/src/stores/account.ts +++ b/src/stores/account.ts @@ -30,6 +30,10 @@ export const useAccountStore = defineStore('account', { }), actions: { async onAccountChange(newAccount: Account) { + if (this.account !== null && this.account.address === newAccount.address) { + return; + } + this.account = newAccount; const tokensStore = useTokensStore(); const knowledgeStore = useKnowledgeStore();