diff --git a/packages/app-accounts/src/index.tsx b/packages/app-accounts/src/index.tsx index 773988080f..67a9307bfe 100644 --- a/packages/app-accounts/src/index.tsx +++ b/packages/app-accounts/src/index.tsx @@ -39,8 +39,8 @@ class AccountsApp extends React.PureComponent { const { allAccounts = {}, t } = props; const baseState = Object.keys(allAccounts).length !== 0 - ? AccountsApp.showVanityState() - : AccountsApp.hideVanityState(); + ? AccountsApp.showTabsState() + : AccountsApp.hideTabsState(); this.state = { ...baseState, @@ -66,18 +66,18 @@ class AccountsApp extends React.PureComponent { }; } - static showVanityState () { + static showTabsState () { return { hidden: [] }; } - static hideVanityState () { + static hideTabsState () { // Hide vanity as well - since the route order and matching changes, the // /create/:seed route become problematic, so don't allow that option return { - hidden: ['vanity'] + hidden: ['overview','vanity'] }; } @@ -87,11 +87,11 @@ class AccountsApp extends React.PureComponent { if (hidden.length === 0) { return hasAddresses ? null - : AccountsApp.hideVanityState(); + : AccountsApp.hideTabsState(); } return hasAddresses - ? AccountsApp.showVanityState() + ? AccountsApp.showTabsState() : null; } @@ -115,7 +115,13 @@ class AccountsApp extends React.PureComponent { - + );