mirror of
https://github.com/status-im/status-react.git
synced 2025-01-11 03:26:31 +00:00
[#9705] fix java.lang.IllegalArgumentException: 16 > 0 after entering PIN code
This commit is contained in:
parent
cda7564bbe
commit
c9cdd48849
@ -171,6 +171,7 @@
|
|||||||
{:db (update-in db [:hardwallet :pin] merge {:status nil
|
{:db (update-in db [:hardwallet :pin] merge {:status nil
|
||||||
:error-label nil})}
|
:error-label nil})}
|
||||||
(common/clear-on-card-connected)
|
(common/clear-on-card-connected)
|
||||||
|
(common/clear-on-card-read)
|
||||||
;; TODO(Ferossgp): Each pin input should handle this event on it's own,
|
;; TODO(Ferossgp): Each pin input should handle this event on it's own,
|
||||||
;; now for simplicity do not hide bottom sheet when generating key
|
;; now for simplicity do not hide bottom sheet when generating key
|
||||||
;; but should be refactored.
|
;; but should be refactored.
|
||||||
@ -179,7 +180,8 @@
|
|||||||
(when-not (contains? #{:hardwallet/unpair
|
(when-not (contains? #{:hardwallet/unpair
|
||||||
:hardwallet/generate-and-load-key
|
:hardwallet/generate-and-load-key
|
||||||
:hardwallet/remove-key-with-unpair
|
:hardwallet/remove-key-with-unpair
|
||||||
:hardwallet/unpair-and-delete} on-verified)
|
:hardwallet/unpair-and-delete
|
||||||
|
:hardwallet/generate-mnemonic} on-verified)
|
||||||
(common/get-application-info pairing nil))
|
(common/get-application-info pairing nil))
|
||||||
(when on-verified
|
(when on-verified
|
||||||
(dispatch-on-verified-event on-verified)))))
|
(dispatch-on-verified-event on-verified)))))
|
||||||
|
@ -72,6 +72,7 @@
|
|||||||
(fx/defn proceed-to-generate-mnemonic
|
(fx/defn proceed-to-generate-mnemonic
|
||||||
{:events [:hardwallet/proceed-to-generate-mnemonic]}
|
{:events [:hardwallet/proceed-to-generate-mnemonic]}
|
||||||
[{:keys [db] :as cofx}]
|
[{:keys [db] :as cofx}]
|
||||||
|
(log/debug "[hardwallet] proceed-to-generate-mnemonic")
|
||||||
(if (= (get-in db [:hardwallet :flow]) :create)
|
(if (= (get-in db [:hardwallet :flow]) :create)
|
||||||
(load-generating-mnemonic-screen cofx)
|
(load-generating-mnemonic-screen cofx)
|
||||||
{:db (assoc-in db [:hardwallet :setup-step] :recovery-phrase)}))
|
{:db (assoc-in db [:hardwallet :setup-step] :recovery-phrase)}))
|
||||||
|
@ -218,6 +218,7 @@
|
|||||||
(fx/defn card-ready-next-button-pressed
|
(fx/defn card-ready-next-button-pressed
|
||||||
{:events [:hardwallet.ui/card-ready-next-button-pressed]}
|
{:events [:hardwallet.ui/card-ready-next-button-pressed]}
|
||||||
[{:keys [db] :as cofx}]
|
[{:keys [db] :as cofx}]
|
||||||
|
(log/debug "[hardwallet] card-ready-next-button-pressed")
|
||||||
(let [pin (get-in db [:hardwallet :secrets :pin])
|
(let [pin (get-in db [:hardwallet :secrets :pin])
|
||||||
pin-already-set? (boolean pin)]
|
pin-already-set? (boolean pin)]
|
||||||
(if pin-already-set?
|
(if pin-already-set?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user