Skip to content

Commit

Permalink
ref: addressed J-Son89's review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
clauxx committed Nov 22, 2023
1 parent 2054a48 commit bf02218
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/status_im2/common/keychain/events.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
(keychain/save-credentials
(password-migration-key-name key-uid)
key-uid
;; NOTE: using the key-id as the password, but we don't really care about the
;; NOTE: using the key-uid as the password, but we don't really care about the
;; value, we only care that it's there
key-uid)
(.catch (fn [error]
Expand Down
6 changes: 3 additions & 3 deletions src/status_im2/contexts/profile/login/events.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
{:db (assoc-in db [:profile/login :processing] true)
::login [key-uid (native-module/sha3 (security/safe-unmask-data password))]}))

(rf/defn biometry-login
{:events [:profile.login/biometry-login]}
(rf/defn biometrics-login
{:events [:profile.login/biometrics-login]}
[{:keys [db]}]
(let [{:keys [key-uid password]} (:profile/login db)]
{:db (assoc-in db [:profile/login :processing] true)
Expand Down Expand Up @@ -190,7 +190,7 @@
cofx
{:db (assoc-in db [:profile/login :password] password)}
(navigation/init-root :progress)
(biometry-login))))
(biometrics-login))))

(rf/defn biometric-auth-fail
{:events [:profile.login/biometric-auth-fail]}
Expand Down

0 comments on commit bf02218

Please sign in to comment.