diff --git a/ui/pages/confirmations/confirmation/templates/add-ethereum-chain.js b/ui/pages/confirmations/confirmation/templates/add-ethereum-chain.js index 64a1dfd24762..c04404a2afa9 100644 --- a/ui/pages/confirmations/confirmation/templates/add-ethereum-chain.js +++ b/ui/pages/confirmations/confirmation/templates/add-ethereum-chain.js @@ -150,6 +150,8 @@ const MISMATCHED_NETWORK_RPC_CHAIN_ID = { }, }; +const multichainFlag = process.env.CHAIN_PERMISSIONS; + const ERROR_CONNECTING_TO_RPC = { id: 'ERROR_CONNECTING_TO_RPC', severity: Severity.Danger, @@ -250,10 +252,10 @@ function getValues(pendingApproval, t, actions, history, data) { }, ], }, - { - element: process.env.CHAIN_PERMISSIONS && 'BannerAlert', + multichainFlag && { + element: 'BannerAlert', key: 'only-add-networks-you-trust', - children: process.env.CHAIN_PERMISSIONS && [ + children: [ { element: 'Typography', key: 'description', @@ -307,7 +309,6 @@ function getValues(pendingApproval, t, actions, history, data) { ], }, { - element: 'a', children: t('learnMoreUpperCase'), key: 'learnMoreUpperCase',