Skip to content

Commit

Permalink
Ensure that portfolio tooltip does not show if new custom network pop…
Browse files Browse the repository at this point in the history
…up is shown (#16090)

Co-authored-by: Jyoti Puri <[email protected]>
  • Loading branch information
danjm and jpuri authored Oct 14, 2022
1 parent 928e9b9 commit 8b2e137
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ui/pages/home/home.component.js
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,7 @@ export default class Home extends PureComponent {
completedOnboarding,
shouldShowSeedPhraseReminder,
onboardedInThisUISession,
newCustomNetworkAdded,
} = this.props;

if (forgottenPassword) {
Expand All @@ -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 />
Expand Down

0 comments on commit 8b2e137

Please sign in to comment.