Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
clauxx committed Jan 16, 2024
1 parent 8025ee4 commit e332d22
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/mocks/js_dependencies.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@
{:MediaStates {}
:PlaybackCategories {}})
(def net-info #js {})
(def touchid #js {})
(def react-native-biometrics #js {:default {}})
(def react-native-image-viewing #js {:default {}})
(def react-native-static-safe-area-insets #js {:default {}})
Expand Down
1 change: 0 additions & 1 deletion src/status_im/common/keychain/events.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@
(get-user-password! key-uid callback)))

(rf/defn get-user-password
{:events [:keychain/get-user-password]}
[_ [key-uid callback]]
{:keychain/get-user-password [key-uid callback]})

Expand Down
5 changes: 2 additions & 3 deletions src/status_im/contexts/profile/login/events.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,8 @@
:profile.login/biometric-success
(fn [{:keys [db]}]
(let [key-uid (get-in db [:profile/login :key-uid])]
{:db db
:dispatch [:keychain/get-user-password
[key-uid #(rf/dispatch [:profile.login/get-user-password-success %])]]})))
{:keychain/get-user-password [key-uid
#(rf/dispatch [:profile.login/get-user-password-success %])]})))

(rf/reg-event-fx
:profile.login/biometric-auth-fail
Expand Down

0 comments on commit e332d22

Please sign in to comment.