Skip to content

Commit

Permalink
fix: do not throw console error on first login
Browse files Browse the repository at this point in the history
  • Loading branch information
JackHamer09 committed Jan 17, 2024
1 parent 60a97c6 commit 3f578fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions store/zksync/wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,14 +168,14 @@ export const useZkSyncWalletStore = defineStore("zkSyncWallet", () => {
if (!account.value.address) throw new Error("Account is not available");
await validateAddress(account.value.address); // Throws an error if the address is not valid
});
walletAddressValidate();
walletAddressValidate().catch(() => undefined);

onboardStore.subscribeOnAccountChange(() => {
resetSigner();
resetL1Signer();
resetAccountState();
resetBalance();
reloadWalletAddressValidation();
reloadWalletAddressValidation().catch(() => undefined);
});

return {
Expand Down

0 comments on commit 3f578fc

Please sign in to comment.