From 4a73facf4e1d485c2202ba8b1891af2e69e3170e Mon Sep 17 00:00:00 2001 From: alwx Date: Wed, 18 Jan 2017 13:59:53 +0300 Subject: [PATCH] App crash on empty password at confirmation (#644) --- src/status_im/transactions/handlers.cljs | 2 +- src/status_im/transactions/screen.cljs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/status_im/transactions/handlers.cljs b/src/status_im/transactions/handlers.cljs index 1c50d39096..e38c01addc 100644 --- a/src/status_im/transactions/handlers.cljs +++ b/src/status_im/transactions/handlers.cljs @@ -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] diff --git a/src/status_im/transactions/screen.cljs b/src/status_im/transactions/screen.cljs index 25374611f5..8337877dcb 100644 --- a/src/status_im/transactions/screen.cljs +++ b/src/status_im/transactions/screen.cljs @@ -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