From eb211630c090f2e201231420e3c417d89bd57095 Mon Sep 17 00:00:00 2001 From: Crypto Minion <154598612+jrwbabylonlab@users.noreply.github.com> Date: Fri, 16 Aug 2024 21:53:57 +1000 Subject: [PATCH] fix: exclude the oneKey from injectable wallet (#85) --- package-lock.json | 4 ++-- package.json | 2 +- src/app/components/Modals/ConnectModal.tsx | 4 +++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 2fe56d31..9d5c9c85 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "simple-staking", - "version": "0.2.34", + "version": "0.2.35", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "simple-staking", - "version": "0.2.34", + "version": "0.2.35", "dependencies": { "@bitcoinerlab/secp256k1": "^1.1.1", "@keystonehq/animated-qr": "^0.8.6", diff --git a/package.json b/package.json index 7d9e8ac2..d849223f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "simple-staking", - "version": "0.2.34", + "version": "0.2.35", "private": true, "scripts": { "dev": "next dev", diff --git a/src/app/components/Modals/ConnectModal.tsx b/src/app/components/Modals/ConnectModal.tsx index 7ff42c9f..3bd37d67 100644 --- a/src/app/components/Modals/ConnectModal.tsx +++ b/src/app/components/Modals/ConnectModal.tsx @@ -102,7 +102,9 @@ export const ConnectModal: React.FC = ({ }; const buildInjectableWallet = (shouldDisplay: boolean, name: string) => { - if (!shouldDisplay) { + // NOTE: The 'OneKey (Browser)' special case here is a temporary solution + // while waiting for the OneKey wallet to release their fixes + if (!shouldDisplay || injectedWalletProviderName === "OneKey (Browser)") { return null; }