Fix crash when passcode disabled

Signed-off-by: Volodymyr Kozieiev <vkjr.sp@gmail.com>
This commit is contained in:
Volodymyr Kozieiev 2020-08-18 14:10:07 +03:00
parent b737051e3c
commit ac4f65be97
No known key found for this signature in database
GPG Key ID: 82B04968DF4C0535
1 changed files with 1 additions and 1 deletions

View File

@ -224,7 +224,7 @@
:on-success #(re-frame/dispatch [::get-settings-callback %])}]}
(when save-password?
(keychain/save-user-password key-uid password))
(keychain/save-auth-method key-uid (or new-auth-method auth-method)))))
(keychain/save-auth-method key-uid (or new-auth-method auth-method keychain/auth-method-none)))))
(fx/defn create-only-events
[{:keys [db] :as cofx}]