fixed #675
This commit is contained in:
parent
dc38ba94c6
commit
556b9beec7
|
@ -155,11 +155,13 @@
|
|||
(let [accounts (->> (accounts-store/get-all)
|
||||
(map (fn [{:keys [address] :as account}]
|
||||
[address account]))
|
||||
(into {}))]
|
||||
(into {}))
|
||||
view (if (empty? accounts)
|
||||
:chat
|
||||
:accounts)]
|
||||
(assoc db :accounts accounts
|
||||
:view-id (if (empty? accounts)
|
||||
:chat
|
||||
:accounts))))
|
||||
:view-id view
|
||||
:navigation-stack (list view))))
|
||||
|
||||
(register-handler :load-accounts load-accounts!)
|
||||
|
||||
|
|
|
@ -39,8 +39,6 @@
|
|||
|
||||
(defn create-account [_]
|
||||
(dispatch-sync [:reset-app])
|
||||
; add accounts screen to history ( maybe there is a better way ? )
|
||||
(dispatch [:navigate-to-clean :accounts])
|
||||
(dispatch [:navigate-to :chat console-chat-id]))
|
||||
|
||||
(defview accounts []
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
[status-im.accounts.styles :as st]))
|
||||
|
||||
(defn on-press [address]
|
||||
(dispatch [:navigate-to-clean :accounts])
|
||||
(dispatch [:navigate-to :login address])
|
||||
(dispatch [:set-in [:login :address] address]))
|
||||
|
||||
|
|
Loading…
Reference in New Issue