aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/pages/home/home.component.js
diff options
context:
space:
mode:
authorMark Stacey <markjstacey@gmail.com>2019-07-26 21:35:21 +0800
committerGitHub <noreply@github.com>2019-07-26 21:35:21 +0800
commit1112277cd628378f8b0e659067456677ec9a45ac (patch)
tree77a4d1878ba8419a0e7400f9147bb67f44b4a177 /ui/app/pages/home/home.component.js
parent58965ed1643a816dca1fec608671017266709dda (diff)
downloadtangerine-wallet-browser-1112277cd628378f8b0e659067456677ec9a45ac.tar.gz
tangerine-wallet-browser-1112277cd628378f8b0e659067456677ec9a45ac.tar.zst
tangerine-wallet-browser-1112277cd628378f8b0e659067456677ec9a45ac.zip
Remove `seedWords` completely from metamask state (#6920)
`seedWords` used to be stored on the metamask state temporarily at certain points. This hasn't been the case since #5994, but references to this state remained. All of the logic remained for correctly updating these `seedWords`, handling them during navigation, and scrubbing them from the state. However the state was never updated in practice. The `seedWords` are still returned by `verifySeedPhrase`, and they're still stored in component state in a few places. But they aren't ever set in the Redux metadata state or the Preferences controller. All references to this state have been removed, along with any logic for interacting with this state. A few unused actions were removed as well.
Diffstat (limited to 'ui/app/pages/home/home.component.js')
-rw-r--r--ui/app/pages/home/home.component.js8
1 files changed, 0 insertions, 8 deletions
diff --git a/ui/app/pages/home/home.component.js b/ui/app/pages/home/home.component.js
index 4d96c3131..01bec7db6 100644
--- a/ui/app/pages/home/home.component.js
+++ b/ui/app/pages/home/home.component.js
@@ -7,7 +7,6 @@ import TransactionView from '../../components/app/transaction-view'
import ProviderApproval from '../provider-approval'
import {
- INITIALIZE_SEED_PHRASE_ROUTE,
RESTORE_VAULT_ROUTE,
CONFIRM_TRANSACTION_ROUTE,
CONFIRM_ADD_SUGGESTED_TOKEN_ROUTE,
@@ -17,7 +16,6 @@ export default class Home extends PureComponent {
static propTypes = {
history: PropTypes.object,
forgottenPassword: PropTypes.bool,
- seedWords: PropTypes.string,
suggestedTokens: PropTypes.object,
unconfirmedTransactionsCount: PropTypes.number,
providerRequests: PropTypes.array,
@@ -49,16 +47,10 @@ export default class Home extends PureComponent {
render () {
const {
forgottenPassword,
- seedWords,
providerRequests,
history,
} = this.props
- // seed words
- if (seedWords) {
- return <Redirect to={{ pathname: INITIALIZE_SEED_PHRASE_ROUTE }}/>
- }
-
if (forgottenPassword) {
return <Redirect to={{ pathname: RESTORE_VAULT_ROUTE }} />
}