1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Ensure the NFT feature flag has changed in all places (#17152)

This commit is contained in:
David Walsh 2023-01-12 00:04:02 -06:00 committed by GitHub
parent 6482848610
commit d468739ff0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -217,7 +217,7 @@ export const SETTINGS_CONSTANTS = [
descriptionMessage: (t) => t('useCollectibleDetectionDescription'), descriptionMessage: (t) => t('useCollectibleDetectionDescription'),
route: `${SECURITY_ROUTE}#autodetect-nfts`, route: `${SECURITY_ROUTE}#autodetect-nfts`,
icon: 'fa fa-flask', icon: 'fa fa-flask',
featureFlag: 'COLLECTIBLES_V1', featureFlag: 'NFTS_V1',
}, },
{ {
tabMessage: (t) => t('alerts'), tabMessage: (t) => t('alerts'),

View File

@ -424,7 +424,7 @@ export default class SecurityTab extends PureComponent {
} }
renderCollectibleDetectionToggle() { renderCollectibleDetectionToggle() {
if (!process.env.COLLECTIBLES_V1) { if (!process.env.NFTS_V1) {
return null; return null;
} }

View File

@ -75,7 +75,7 @@ describe('Security Tab', () => {
const checkboxes = queryAllByRole('checkbox'); const checkboxes = queryAllByRole('checkbox');
let index = 4; let index = 4;
if (process.env.COLLECTIBLES_V1) { if (process.env.NFTS_V1) {
index = 5; index = 5;
} }
const toggleMetaMetricsCheckbox = checkboxes[index]; const toggleMetaMetricsCheckbox = checkboxes[index];