Signed-off-by: Michele Balistreri <michele@bitgamma.com>
This commit is contained in:
Michele Balistreri 2021-05-25 10:00:30 +03:00
parent 58d358125c
commit b67ecacd8b
No known key found for this signature in database
GPG Key ID: E9567DA33A4F791A
2 changed files with 4 additions and 4 deletions

View File

@ -14,7 +14,8 @@
{:db (-> db
(assoc-in [:keycard :pin :enter-step] :export-key)
(update-in [:keycard :pin] dissoc :export-key)
(assoc :keycard/new-account-sheet? true))}))
(assoc :keycard/new-account-sheet? true))
:dismiss-keyboard nil}))
(fx/defn verify-pin-with-delay
[cofx]

View File

@ -203,6 +203,5 @@
(re-frame/reg-sub
:keycard/frozen-card?
(fn [db]
(let [{:keys [pin-retry-counter]}
(get-in db [:keycard :application-info])]
(zero? pin-retry-counter))))
(and (common/keycard-multiaccount? db)
(zero? (get-in db [:keycard :application-info :pin-retry-counter])))))