Ensure that portfolio tooltip does not show if new custom network popup is shown (#16090)

Co-authored-by: Jyoti Puri <jyotipuri@gmail.com>
feature/default_network_editable
Dan J Miller 2 years ago committed by seaona
parent 17b664b0b6
commit 742fc1a1c6
  1. 4
      ui/pages/home/home.component.js

@ -615,6 +615,7 @@ export default class Home extends PureComponent {
completedOnboarding,
shouldShowSeedPhraseReminder,
onboardedInThisUISession,
newCustomNetworkAdded,
} = this.props;
if (forgottenPassword) {
@ -629,7 +630,8 @@ export default class Home extends PureComponent {
announcementsToShow &&
showWhatsNewPopup &&
!showPortfolioTooltip &&
!portfolioTooltipWasShownInThisSession;
!portfolioTooltipWasShownInThisSession &&
Object.keys(newCustomNetworkAdded).length === 0;
return (
<div className="main-container">
<Route path={CONNECTED_ROUTE} component={ConnectedSites} exact />

Loading…
Cancel
Save