Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
NidhiKJha committed Jun 13, 2024
1 parent d082b0b commit 1fadc76
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions ui/pages/routes/routes.component.js
Original file line number Diff line number Diff line change
Expand Up @@ -859,14 +859,14 @@ export default class Routes extends Component {
: null;

// Conditions for displaying the Send route
const isHomePage = matchPath(location.pathname, {
path: DEFAULT_ROUTE,
const isSendRoute = matchPath(location.pathname, {
path: SEND_ROUTE,
exact: false,
});
const shouldShowNetworkInfo =
isUnlocked &&
currentChainId &&
isHomePage &&
!isSendRoute &&
!isTestNet &&
!isNetworkUsed &&
!isCurrentProviderCustom &&
Expand Down Expand Up @@ -910,7 +910,9 @@ export default class Routes extends Component {
}
>
{shouldShowNetworkDeprecationWarning ? <DeprecatedNetworks /> : null}
{shouldShowNetworkInfo ? <NewNetworkInfo /> : null}
{location.pathname === DEFAULT_ROUTE && shouldShowNetworkInfo ? (
<NewNetworkInfo />
) : null}
<QRHardwarePopover />
<Modal />
<Alert visible={this.props.alertOpen} msg={alertMessage} />
Expand Down

0 comments on commit 1fadc76

Please sign in to comment.