[#9268] fix Multiaccount is currently empty on login

This commit is contained in:
Roman Volosovskyi 2019-11-04 14:12:20 +02:00
parent 971db3ea2e
commit 76be2c279f
No known key found for this signature in database
GPG Key ID: 0238A4B5ECEE70DE
1 changed files with 4 additions and 1 deletions

View File

@ -68,7 +68,10 @@
{:events [:multiaccounts.login.ui/password-input-submitted]}
[{:keys [db] :as cofx}]
(let [{:keys [address password name photo-path]} (:multiaccounts/login db)]
{:db (assoc-in db [:multiaccounts/login :processing] true)
{:db (-> db
(assoc-in [:multiaccounts/login :processing] true)
(dissoc :intro-wizard)
(update :hardwallet dissoc :flow))
::login [(types/clj->json {:name name :address address :photo-path photo-path})
(ethereum/sha3 (security/safe-unmask-data password))]}))