App crash on empty password at confirmation (#644)

This commit is contained in:
alwx 2017-01-18 13:59:53 +03:00 committed by Roman Volosovskyi
parent b28faa3115
commit 4a73facf4e
2 changed files with 3 additions and 2 deletions

View File

@ -27,7 +27,7 @@
(assoc :transactions transactions-queue
:wrong-password-counter 0
:wrong-password? false)
(assoc-in [:confirm-transactions :password] 0)))
(assoc-in [:confirm-transactions :password] "")))
(defn on-unlock
[ids password]

View File

@ -39,7 +39,8 @@
:icon_ok
:icon_ok_disabled_inversed)}
:style icon-ok}
:handler #(dispatch [:accept-transactions password])}]}]
:handler (when-not (s/blank? password)
#(dispatch [:accept-transactions password]))}]}]
[view st/carousel-container
[carousel {:pageStyle st/carousel-page-style
:gap 8