From 944decce23b1392da26b298f640b98b1440f0abc Mon Sep 17 00:00:00 2001 From: NidhiKJha Date: Mon, 9 Sep 2024 03:40:10 +0100 Subject: [PATCH] updated condition for non multichain feature --- .../confirmation/templates/add-ethereum-chain.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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',