Skip to content

Commit

Permalink
Error on login with touch ID enabled #19055
Browse files Browse the repository at this point in the history
  • Loading branch information
flexsurfer committed Feb 29, 2024
1 parent d637f69 commit 6c37130
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/status_im/contexts/profile/profiles/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -170,15 +170,16 @@
(defn password-input
[]
(let [auth-method (rf/sub [:auth-method])
on-press-biometrics (when (= auth-method constants/auth-method-biometric)
(rn/use-callback
(fn []
on-press-biometrics (rn/use-callback
(fn []
(when (= auth-method constants/auth-method-biometric)
(rf/dispatch [:biometric/authenticate
{:on-success #(rf/dispatch
[:profile.login/biometric-success])
:on-fail #(rf/dispatch
[:profile.login/biometric-auth-fail
%])}]))))]
%])}])))
[auth-method])]
[standard-authentication/password-input
{:shell? true
:blur? true
Expand Down

0 comments on commit 6c37130

Please sign in to comment.