Browse Source

fix(submit wallet): dont allow user to move on if the aezeedPass doesnt match the confirmation pass

renovate/lint-staged-8.x
Jack Mallers 7 years ago
parent
commit
ef03dccf47
  1. 7
      app/components/Onboarding/Onboarding.js

7
app/components/Onboarding/Onboarding.js

@ -131,7 +131,12 @@ const Onboarding = ({
title='Encrypt your seed' title='Encrypt your seed'
description='Totally optional, but we encourage it. Set a password that will be used to encrypt your wallet seed' // eslint-disable-line description='Totally optional, but we encourage it. Set a password that will be used to encrypt your wallet seed' // eslint-disable-line
back={() => changeStep(6)} back={() => changeStep(6)}
next={() => submitNewWallet(createWalletPassword, seed, aezeedPassword)} next={() => {
// dont allow the user to move on if the confirmation password doesnt match the original password
if (newAezeedPasswordProps.showAezeedPasswordConfirmationError) { return }
submitNewWallet(createWalletPassword, seed, aezeedPassword)
}}
> >
<NewAezeedPassword {...newAezeedPasswordProps} /> <NewAezeedPassword {...newAezeedPasswordProps} />
</FormContainer> </FormContainer>

Loading…
Cancel
Save