Skip to content

Commit 748ee7c

Browse files
committed
fix(nfts): restore NFT detection toast auto-hide and stable id to prevent stacking and match 5s duration
1 parent ef97a44 commit 748ee7c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

ui/components/app/assets/nfts/nfts-detection-notice-nfts-tab/nfts-detection-notice-nfts-tab.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ export default function NFTsDetectionNoticeNFTsTab() {
3939
severity: 'success',
4040
title: t('nftAutoDetectionEnabled'),
4141
'data-testid': nftDetectionEnabledToastId,
42+
// Ensure toast auto-hides and dedupes like before
43+
id: nftDetectionEnabledToastId,
44+
duration: autoHideToastDelay,
45+
hasNoTimeout: false,
4246
});
4347
// dispatch action to detect nfts
4448
dispatch(detectNfts(allChainIds));

0 commit comments

Comments
 (0)