mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 09:57:02 +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:
parent
17b664b0b6
commit
742fc1a1c6
@ -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 />
|
||||
|
Loading…
Reference in New Issue
Block a user