From 7760571ad4703ad637ed53889d8b82c6fcf906b4 Mon Sep 17 00:00:00 2001 From: sahar-fehri Date: Fri, 14 Jun 2024 12:59:39 +0200 Subject: [PATCH] fix: show nftautodetection modal only on mainnet --- shared/modules/selectors/nft-auto-detect.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/shared/modules/selectors/nft-auto-detect.ts b/shared/modules/selectors/nft-auto-detect.ts index cd4fc10ae25f..889a0348f179 100644 --- a/shared/modules/selectors/nft-auto-detect.ts +++ b/shared/modules/selectors/nft-auto-detect.ts @@ -1,4 +1,7 @@ -import { getUseNftDetection } from '../../../ui/selectors/selectors'; +import { + getIsMainnet, + getUseNftDetection, +} from '../../../ui/selectors/selectors'; type NftAutoDetectionMetaMaskState = { metamask: { @@ -19,6 +22,7 @@ export const getIsShowNftAutodetectModal = ( ) => { return ( !getUseNftDetection(state) && + getIsMainnet(state) && (getShowNftAutodetectModal(state) === null || getShowNftAutodetectModal(state) === undefined) );