diff --git a/ui/helpers/constants/settings.js b/ui/helpers/constants/settings.js index a41d902fe..568f4a529 100644 --- a/ui/helpers/constants/settings.js +++ b/ui/helpers/constants/settings.js @@ -217,7 +217,7 @@ export const SETTINGS_CONSTANTS = [ descriptionMessage: (t) => t('useCollectibleDetectionDescription'), route: `${SECURITY_ROUTE}#autodetect-nfts`, icon: 'fa fa-flask', - featureFlag: 'COLLECTIBLES_V1', + featureFlag: 'NFTS_V1', }, { tabMessage: (t) => t('alerts'), diff --git a/ui/pages/settings/security-tab/security-tab.component.js b/ui/pages/settings/security-tab/security-tab.component.js index a15173a80..1ea14d7bc 100644 --- a/ui/pages/settings/security-tab/security-tab.component.js +++ b/ui/pages/settings/security-tab/security-tab.component.js @@ -424,7 +424,7 @@ export default class SecurityTab extends PureComponent { } renderCollectibleDetectionToggle() { - if (!process.env.COLLECTIBLES_V1) { + if (!process.env.NFTS_V1) { return null; } diff --git a/ui/pages/settings/security-tab/security-tab.test.js b/ui/pages/settings/security-tab/security-tab.test.js index 400781447..b405d06cc 100644 --- a/ui/pages/settings/security-tab/security-tab.test.js +++ b/ui/pages/settings/security-tab/security-tab.test.js @@ -75,7 +75,7 @@ describe('Security Tab', () => { const checkboxes = queryAllByRole('checkbox'); let index = 4; - if (process.env.COLLECTIBLES_V1) { + if (process.env.NFTS_V1) { index = 5; } const toggleMetaMetricsCheckbox = checkboxes[index];