Skip to content

Commit

Permalink
Reset wallet details from storage if it is v1
Browse files Browse the repository at this point in the history
  • Loading branch information
yasincaliskan committed May 9, 2024
1 parent a1315cc commit fd75955
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/PeraWalletConnect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,12 @@ class PeraWalletConnect {
try {
const walletDetails = getWalletDetailsFromStorage();

if (!walletDetails?.chainId) {
await resetWalletDetailsFromStorage();

return;
}

if (!walletDetails) {
resolve([]);

Expand Down

0 comments on commit fd75955

Please sign in to comment.