aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/pages
diff options
context:
space:
mode:
authorMark Stacey <markjstacey@gmail.com>2019-07-25 21:59:40 +0800
committerGitHub <noreply@github.com>2019-07-25 21:59:40 +0800
commita578c725c886b7c3d99914aed0be1aeec9e49b2b (patch)
tree2880b4a0edb0593b72af1996c935aec529f7e212 /ui/app/pages
parentadac1de822fb461ba792ae248fbda366c428fca7 (diff)
downloadtangerine-wallet-browser-a578c725c886b7c3d99914aed0be1aeec9e49b2b.tar.gz
tangerine-wallet-browser-a578c725c886b7c3d99914aed0be1aeec9e49b2b.tar.zst
tangerine-wallet-browser-a578c725c886b7c3d99914aed0be1aeec9e49b2b.zip
Remove unused `seedPhrase` prop (#6913)
The `seedPhrase` prop has not been passed into the `first-time-flow-switch` component since #5994.
Diffstat (limited to 'ui/app/pages')
-rw-r--r--ui/app/pages/first-time-flow/first-time-flow-switch/first-time-flow-switch.component.js9
1 files changed, 1 insertions, 8 deletions
diff --git a/ui/app/pages/first-time-flow/first-time-flow-switch/first-time-flow-switch.component.js b/ui/app/pages/first-time-flow/first-time-flow-switch/first-time-flow-switch.component.js
index 4fd028482..6bc89245b 100644
--- a/ui/app/pages/first-time-flow/first-time-flow-switch/first-time-flow-switch.component.js
+++ b/ui/app/pages/first-time-flow/first-time-flow-switch/first-time-flow-switch.component.js
@@ -6,7 +6,6 @@ import {
LOCK_ROUTE,
INITIALIZE_WELCOME_ROUTE,
INITIALIZE_UNLOCK_ROUTE,
- INITIALIZE_SEED_PHRASE_ROUTE,
INITIALIZE_METAMETRICS_OPT_IN_ROUTE,
} from '../../../helpers/constants/routes'
@@ -15,7 +14,6 @@ export default class FirstTimeFlowSwitch extends PureComponent {
completedOnboarding: PropTypes.bool,
isInitialized: PropTypes.bool,
isUnlocked: PropTypes.bool,
- seedPhrase: PropTypes.string,
optInMetaMetrics: PropTypes.bool,
}
@@ -24,7 +22,6 @@ export default class FirstTimeFlowSwitch extends PureComponent {
completedOnboarding,
isInitialized,
isUnlocked,
- seedPhrase,
optInMetaMetrics,
} = this.props
@@ -32,7 +29,7 @@ export default class FirstTimeFlowSwitch extends PureComponent {
return <Redirect to={{ pathname: DEFAULT_ROUTE }} />
}
- if (isUnlocked && !seedPhrase) {
+ if (isUnlocked) {
return <Redirect to={{ pathname: LOCK_ROUTE }} />
}
@@ -44,10 +41,6 @@ export default class FirstTimeFlowSwitch extends PureComponent {
return <Redirect to={{ pathname: INITIALIZE_UNLOCK_ROUTE }} />
}
- if (seedPhrase) {
- return <Redirect to={{ pathname: INITIALIZE_SEED_PHRASE_ROUTE }} />
- }
-
if (optInMetaMetrics === null) {
return <Redirect to={{ pathname: INITIALIZE_WELCOME_ROUTE }} />
}