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 GitHub
parent 928e9b96e2
commit 8b2e137683
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      ui/pages/home/home.component.js

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

Loading…
Cancel
Save