Skip to content

Commit da22063

Browse files
authored
Error on login with touch ID enabled #19055 (#19057)
1 parent c15084f commit da22063

File tree

1 file changed

+5
-4
lines changed
  • src/status_im/contexts/profile/profiles

1 file changed

+5
-4
lines changed

src/status_im/contexts/profile/profiles/view.cljs

+5-4
Original file line numberDiff line numberDiff line change
@@ -170,15 +170,16 @@
170170
(defn password-input
171171
[]
172172
(let [auth-method (rf/sub [:auth-method])
173-
on-press-biometrics (when (= auth-method constants/auth-method-biometric)
174-
(rn/use-callback
175-
(fn []
173+
on-press-biometrics (rn/use-callback
174+
(fn []
175+
(when (= auth-method constants/auth-method-biometric)
176176
(rf/dispatch [:biometric/authenticate
177177
{:on-success #(rf/dispatch
178178
[:profile.login/biometric-success])
179179
:on-fail #(rf/dispatch
180180
[:profile.login/biometric-auth-fail
181-
%])}]))))]
181+
%])}])))
182+
[auth-method])]
182183
[standard-authentication/password-input
183184
{:shell? true
184185
:blur? true

0 commit comments

Comments
 (0)