[#10784] Fix kk multiacc creation after closing app

This commit is contained in:
Roman Volosovskyi 2020-07-08 14:48:10 +03:00
parent 5101d4d6a5
commit bda7386747
No known key found for this signature in database
GPG Key ID: 0238A4B5ECEE70DE
1 changed files with 5 additions and 3 deletions

View File

@ -373,9 +373,11 @@
(fx/defn get-application-info (fx/defn get-application-info
{:events [:hardwallet/get-application-info]} {:events [:hardwallet/get-application-info]}
[{:keys [db]} pairing on-card-read] [{:keys [db]} pairing on-card-read]
(let [key-uid (get-in (let [key-uid
db [:hardwallet :application-info :key-uid] (when-not (:intro-wizard db)
(get-in db [:multiaccounts/login :key-uid])) (get-in
db [:hardwallet :application-info :key-uid]
(get-in db [:multiaccounts/login :key-uid])))
pairing' (or pairing (some->> key-uid (get-pairing db)))] pairing' (or pairing (some->> key-uid (get-pairing db)))]
(log/debug "[hardwallet] get-application-info" (log/debug "[hardwallet] get-application-info"
"pairing" pairing') "pairing" pairing')