Skip to content

Commit

Permalink
feat: login with biometry when switching accounts
Browse files Browse the repository at this point in the history
  • Loading branch information
clauxx committed Dec 6, 2023
1 parent 7e14846 commit 5a74b91
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/status_im2/contexts/profile/events.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@
(rf/defn profile-selected
{:events [:profile/profile-selected]}
[{:keys [db]} key-uid]
{:db (update db
:profile/login
#(-> %
(assoc :key-uid key-uid)
(dissoc :error :password)))})
{:db (update db
:profile/login
#(-> %
(assoc :key-uid key-uid)
(dissoc :error :password)))
:dispatch [:profile.login/login-with-biometric-if-available key-uid]})

(rf/defn init-profiles-overview
[{:keys [db] :as cofx} profiles key-uid]
Expand Down

0 comments on commit 5a74b91

Please sign in to comment.