Skip to content

Commit

Permalink
fix wallet connection
Browse files Browse the repository at this point in the history
  • Loading branch information
webdev403 committed Jul 24, 2023
1 parent ecab2a5 commit 55de61b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/components/WalletModal/WalletModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ import React, { useEffect, useState } from 'react';
import { isMobile } from 'react-device-detect';
import ReactGA from 'react-ga';
import { Box } from '@material-ui/core';
import MetamaskIcon from 'assets/images/metamask.png';
import OkxWalletIcon from 'assets/images/OKXWallet.svg';
import { ReactComponent as Close } from 'assets/images/CloseIcon.svg';
import { GlobalConst } from 'constants/index';
import { ApplicationModal } from 'state/application/actions';
Expand Down Expand Up @@ -233,7 +231,7 @@ const WalletModal: React.FC<WalletModalProps> = ({
header={t('installMetamask')}
subheader={null}
link={'https://metamask.io/'}
icon={MetamaskIcon}
icon={option.iconName}
iconify={iconify}
/>
);
Expand All @@ -249,7 +247,7 @@ const WalletModal: React.FC<WalletModalProps> = ({
header={t('installOkxWallet')}
subheader={null}
link={'https://www.okx.com/web3'}
icon={OkxWalletIcon}
icon={option.iconName}
iconify={iconify}
/>
);
Expand Down
1 change: 1 addition & 0 deletions src/connectors/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export const getIsMetaMaskWallet = () => {
return Boolean(
ethereum &&
ethereum.isMetaMask &&
ethereum._metamask &&
(ethereum.detected && ethereum.detected.length > 0
? ethereum.detected.find(
(provider: any) =>
Expand Down

0 comments on commit 55de61b

Please sign in to comment.