diff options
author | Mark Stacey <markjstacey@gmail.com> | 2019-07-25 21:59:40 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-25 21:59:40 +0800 |
commit | a578c725c886b7c3d99914aed0be1aeec9e49b2b (patch) | |
tree | 2880b4a0edb0593b72af1996c935aec529f7e212 | |
parent | adac1de822fb461ba792ae248fbda366c428fca7 (diff) | |
download | tangerine-wallet-browser-a578c725c886b7c3d99914aed0be1aeec9e49b2b.tar tangerine-wallet-browser-a578c725c886b7c3d99914aed0be1aeec9e49b2b.tar.gz tangerine-wallet-browser-a578c725c886b7c3d99914aed0be1aeec9e49b2b.tar.bz2 tangerine-wallet-browser-a578c725c886b7c3d99914aed0be1aeec9e49b2b.tar.lz tangerine-wallet-browser-a578c725c886b7c3d99914aed0be1aeec9e49b2b.tar.xz 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.
-rw-r--r-- | ui/app/pages/first-time-flow/first-time-flow-switch/first-time-flow-switch.component.js | 9 |
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 }} /> } |