1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 01:39:44 +01:00

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

Co-authored-by: Jyoti Puri <jyotipuri@gmail.com>
This commit is contained in:
Dan J Miller 2022-10-14 12:16:37 -02:30 committed by seaona
parent 17b664b0b6
commit 742fc1a1c6

View File

@ -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 />