bug #3877 - no longer possible to sign messages with empty password
Signed-off-by: Eric Dvorsak <eric@dvorsak.fr>
This commit is contained in:
parent
f8e535f9bc
commit
ca80926433
|
@ -91,7 +91,8 @@
|
|||
:signing? false
|
||||
:wrong-password? false
|
||||
:waiting-signal? false
|
||||
:from-chat? false})
|
||||
:from-chat? false
|
||||
:password nil})
|
||||
|
||||
(defn on-transactions-completed [raw-results]
|
||||
(let [results (:results (types/json->clj raw-results))]
|
||||
|
@ -290,7 +291,8 @@
|
|||
(fn [{:keys [db]} _]
|
||||
{:db (update-in db [:wallet :send-transaction] assoc
|
||||
:signing? false
|
||||
:wrong-password? false)}))
|
||||
:wrong-password? false
|
||||
:password nil)}))
|
||||
|
||||
(handlers/register-handler-fx
|
||||
:wallet.send/set-password
|
||||
|
|
|
@ -71,6 +71,7 @@
|
|||
(i18n/label :t/cancel)]
|
||||
[button/button {:style (wallet.styles/button-container sign-enabled?)
|
||||
:on-press sign-handler
|
||||
:disabled? (not sign-enabled?)
|
||||
:accessibility-label :sign-transaction-button}
|
||||
(i18n/label (or sign-label :t/transactions-sign-transaction))
|
||||
[vector-icons/icon :icons/forward {:color :white}]]]))
|
||||
|
|
Loading…
Reference in New Issue