diff --git a/src/status_im/utils/keychain/core.cljs b/src/status_im/utils/keychain/core.cljs index 079dba8c2b..75a5b99fe7 100644 --- a/src/status_im/utils/keychain/core.cljs +++ b/src/status_im/utils/keychain/core.cljs @@ -173,18 +173,21 @@ :keychain/save-auth-method (fn [[key-uid method]] (log/debug "[keychain] :keychain/save-auth-method" + "key-uid" + key-uid "method" method) - (save-credentials - (str key-uid "-auth") - key-uid - method - #(when-not % - (log/error - (str "Error while saving auth method." - " " - "The app will continue to work normally, " - "but you will have to login again next time you launch it.")))))) + (when-not (empty? key-uid) ; key-uid may be nil after restore from local pairing + (save-credentials + (str key-uid "-auth") + key-uid + method + #(when-not % + (log/error + (str "Error while saving auth method." + " " + "The app will continue to work normally, " + "but you will have to login again next time you launch it."))))))) (re-frame/reg-fx :keychain/save-keycard-keys