Browse Source

fix(onboarding-empty-pass): add empty password validation

renovate/lint-staged-8.x
odb366 7 years ago
parent
commit
a712381765
  1. 7
      app/components/Onboarding/Onboarding.js

7
app/components/Onboarding/Onboarding.js

@ -127,8 +127,11 @@ const Onboarding = ({
if (newWalletPasswordProps.showCreateWalletPasswordConfirmationError) {
return
}
// if the password is less than 8 characters dont allow users to proceed
if (newWalletPasswordProps.passwordMinCharsError) {
// if the password is less than 8 characters or empty dont allow users to proceed
if (
newWalletPasswordProps.passwordMinCharsError ||
!newWalletPasswordProps.createWalletPassword
) {
return
}

Loading…
Cancel
Save