Skip to content

Commit

Permalink
fix: show nftautodetection modal only on mainnet
Browse files Browse the repository at this point in the history
  • Loading branch information
sahar-fehri committed Jun 14, 2024
1 parent e45ebc8 commit 7760571
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion shared/modules/selectors/nft-auto-detect.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import { getUseNftDetection } from '../../../ui/selectors/selectors';
import {
getIsMainnet,
getUseNftDetection,
} from '../../../ui/selectors/selectors';

type NftAutoDetectionMetaMaskState = {
metamask: {
Expand All @@ -19,6 +22,7 @@ export const getIsShowNftAutodetectModal = (
) => {
return (
!getUseNftDetection(state) &&
getIsMainnet(state) &&
(getShowNftAutodetectModal(state) === null ||
getShowNftAutodetectModal(state) === undefined)
);
Expand Down

0 comments on commit 7760571

Please sign in to comment.