diff --git a/package-lock.json b/package-lock.json index 39411e2..97874c2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@perawallet/connect", - "version": "1.2.2", + "version": "1.2.3", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@perawallet/connect", - "version": "1.2.2", + "version": "1.2.3", "license": "ISC", "dependencies": { "@evanhahn/lottie-web-light": "5.8.1", diff --git a/package.json b/package.json index 1afb75f..22d9a95 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "1.2.2", + "version": "1.2.3", "name": "@perawallet/connect", "description": "JavaScript SDK for integrating Pera Wallet to web applications.", "main": "dist/index.js", diff --git a/src/PeraWalletConnect.ts b/src/PeraWalletConnect.ts index e3d6fa0..b8e3054 100644 --- a/src/PeraWalletConnect.ts +++ b/src/PeraWalletConnect.ts @@ -455,6 +455,12 @@ class PeraWalletConnect { try { const walletDetails = getWalletDetailsFromStorage(); + if (!walletDetails) { + resolve([]); + + return; + } + // ================================================= // // Pera Wallet Web flow if (walletDetails?.type === "pera-wallet-web") {