1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 18:00:18 +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, 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 />