From 276f7a255eecb006e4808a9f892bdd3a2773df93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Bu=C4=9Fra=20Yi=C4=9Fiter?= Date: Tue, 11 Apr 2023 16:54:54 +0300 Subject: [PATCH 1/2] fix(bridge): solve custom url issue --- src/PeraWalletConnect.ts | 6 ++++++ 1 file changed, 6 insertions(+) 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") { From eb27a4193350f0ed0e610764dff64e4922d890e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Bu=C4=9Fra=20Yi=C4=9Fiter?= Date: Wed, 12 Apr 2023 15:21:08 +0300 Subject: [PATCH 2/2] chore: bump up patch version --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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",