Skip to content

Commit

Permalink
fix(account): Double requests for signature
Browse files Browse the repository at this point in the history
  • Loading branch information
RezaRahemtola committed Oct 27, 2024
1 parent e396122 commit 9fb69f6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/stores/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 9fb69f6

Please sign in to comment.