1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 11:22:43 +02: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 GitHub
parent 928e9b96e2
commit 8b2e137683
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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