-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow seed phrases with a trailing newline #6213
Conversation
@@ -45,9 +45,11 @@ export default class ImportWithSeedPhrase extends PureComponent { | |||
} else if (!validateMnemonic(parsedSeedPhrase)) { | |||
seedPhraseError = this.context.t('invalidSeedPhrase') | |||
} | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test failures are real failures. parsedSeedPhrase
will always remove trailing white spaces, not allowing the user to type spaced words.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah totally didn't test this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
left comment
Updated. |
@whymarrh looks like conflicts popped up again |
4c08918
to
1c9caa4
Compare
1c9caa4
to
29a0b34
Compare
Refs #6134 and #5827
Take 3 🎬
This PR updates the import seed phrase screen (during on-boarding) to strip extraneous leading and trailing whitespace from the seed phrase. This adds the crucial step of using the trimmed seed phrase in the
onSubmit
handler.