mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 01:39:44 +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'),
|
||||
route: `${SECURITY_ROUTE}#autodetect-nfts`,
|
||||
icon: 'fa fa-flask',
|
||||
featureFlag: 'COLLECTIBLES_V1',
|
||||
featureFlag: 'NFTS_V1',
|
||||
},
|
||||
{
|
||||
tabMessage: (t) => t('alerts'),
|
||||
|
@ -424,7 +424,7 @@ export default class SecurityTab extends PureComponent {
|
||||
}
|
||||
|
||||
renderCollectibleDetectionToggle() {
|
||||
if (!process.env.COLLECTIBLES_V1) {
|
||||
if (!process.env.NFTS_V1) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user