Skip to content

Commit

Permalink
fix: exclude the oneKey from injectable wallet (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrwbabylonlab authored Aug 16, 2024
1 parent 5181f27 commit eb21163
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "simple-staking",
"version": "0.2.34",
"version": "0.2.35",
"private": true,
"scripts": {
"dev": "next dev",
Expand Down
4 changes: 3 additions & 1 deletion src/app/components/Modals/ConnectModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@ export const ConnectModal: React.FC<ConnectModalProps> = ({
};

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;
}

Expand Down

0 comments on commit eb21163

Please sign in to comment.