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 944decc commit 366bb44
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,6 @@ 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 @@ -252,10 +250,10 @@ function getValues(pendingApproval, t, actions, history, data) {
},
],
},
multichainFlag && {
element: 'BannerAlert',
{
element: process.env.CHAIN_PERMISSIONS && 'BannerAlert',
key: 'only-add-networks-you-trust',
children: [
children: process.env.CHAIN_PERMISSIONS && [
{
element: 'Typography',
key: 'description',
Expand Down

0 comments on commit 366bb44

Please sign in to comment.