Skip to content

Commit

Permalink
updated condition for non multichain feature
Browse files Browse the repository at this point in the history
  • Loading branch information
NidhiKJha committed Sep 9, 2024
1 parent c69b439 commit 944decc
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -307,7 +309,6 @@ function getValues(pendingApproval, t, actions, history, data) {
],
},
{

element: 'a',
children: t('learnMoreUpperCase'),
key: 'learnMoreUpperCase',
Expand Down

0 comments on commit 944decc

Please sign in to comment.