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:
parent
6482848610
commit
d468739ff0
@ -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'),
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user