mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Merge pull request #1678 from MetaMask/i1584-seederror
Display error when seed phrase is invalid
This commit is contained in:
commit
48f7cff8c0
@ -7,6 +7,7 @@
|
||||
- Fix bug where slowly mined txs would sometimes be incorrectly marked as failed.
|
||||
- Fix bug where badge count did not reflect personal_sign pending messages.
|
||||
- Seed word confirmation wording is now scarier.
|
||||
- Fix error for invalid seed words.
|
||||
- Prevent users from submitting two duplicate transactions by disabling submit.
|
||||
|
||||
## 3.7.8 2017-6-12
|
||||
|
@ -87,7 +87,7 @@ class KeyringController extends EventEmitter {
|
||||
}
|
||||
|
||||
if (!bip39.validateMnemonic(seed)) {
|
||||
return Promise.reject('Seed phrase is invalid.')
|
||||
return Promise.reject(new Error('Seed phrase is invalid.'))
|
||||
}
|
||||
|
||||
this.clearKeyrings()
|
||||
|
Loading…
Reference in New Issue
Block a user