From 8b2e137683e665100496cc753f95847a06586d9e Mon Sep 17 00:00:00 2001 From: Dan J Miller Date: Fri, 14 Oct 2022 12:16:37 -0230 Subject: [PATCH] Ensure that portfolio tooltip does not show if new custom network popup is shown (#16090) Co-authored-by: Jyoti Puri --- ui/pages/home/home.component.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/pages/home/home.component.js b/ui/pages/home/home.component.js index 8318ddd25..d1f15978a 100644 --- a/ui/pages/home/home.component.js +++ b/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 (