mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Fix error message for invalid seed words.
This commit is contained in:
parent
8b5b2d8329
commit
92da8bc578
@ -87,7 +87,7 @@ class KeyringController extends EventEmitter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!bip39.validateMnemonic(seed)) {
|
if (!bip39.validateMnemonic(seed)) {
|
||||||
return Promise.reject('Seed phrase is invalid.')
|
return Promise.reject(new Error('Seed phrase is invalid.'))
|
||||||
}
|
}
|
||||||
|
|
||||||
this.clearKeyrings()
|
this.clearKeyrings()
|
||||||
|
Loading…
Reference in New Issue
Block a user