Skip to content

Commit

Permalink
fix(neuron-ui): fix mnemonic formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Keith-CY committed Jul 27, 2019
1 parent f3e756e commit 35ed784
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/neuron-ui/src/components/WalletWizard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,12 @@ const Mnemonic = ({
if (isCreate) {
history.push(`${rootPath}${WalletWizardPath.Mnemonic}/${MnemonicAction.Verify}`)
} else {
const trimedMnemonic = imported.trim().replace(/(\s+|\n+)/g, ' ')
dispatch({
type: 'imported',
payload: imported.trim().replace(/(\s+|\n+)/g, ' '),
payload: trimedMnemonic,
})
const isMnemonicValid = validateMnemonic(imported)
const isMnemonicValid = validateMnemonic(trimedMnemonic)
if (isMnemonicValid) {
history.push(
`${rootPath}${WalletWizardPath.Submission}/${
Expand Down

0 comments on commit 35ed784

Please sign in to comment.