Disabled next in password screen

Fixes #10965

Signed-off-by: Gheorghe Pinzaru <feross95@gmail.com>
This commit is contained in:
Gheorghe Pinzaru 2020-07-16 14:59:22 +03:00
parent 4f135292a5
commit 6fcb426a71
No known key found for this signature in database
GPG Key ID: C9A094959935A952
1 changed files with 2 additions and 1 deletions

View File

@ -27,7 +27,7 @@
valid-form (confirm-password @password @confirm) valid-form (confirm-password @password @confirm)
on-submit (fn [] on-submit (fn []
(when (not processing?) (when (not processing?)
(if valid-form (if (and valid-password valid-form)
(do (reset! show-error false) (do (reset! show-error false)
(re-frame/dispatch [forward-action {:key-code @password}])) (re-frame/dispatch [forward-action {:key-code @password}]))
(reset! show-error true))))] (reset! show-error true))))]
@ -106,6 +106,7 @@
:accessibility-label :onboarding-next-button :accessibility-label :onboarding-next-button
:disabled (or (nil? @confirm) :disabled (or (nil? @confirm)
(not valid-password) (not valid-password)
(not valid-form)
processing?) processing?)
:type :secondary :type :secondary
:after :main-icons/next} :after :main-icons/next}