mirror of
https://github.com/status-im/status-react.git
synced 2025-02-19 22:28:40 +00:00
fix #1804 - duplicated status in discover tab
This commit is contained in:
parent
7875e11ea0
commit
7a06bb8278
@ -128,7 +128,7 @@
|
||||
|
||||
(register-handler-fx
|
||||
:check-status-change
|
||||
(fn [{:accounts/keys [accounts current-account-id]} [_ status]]
|
||||
(fn [{{:accounts/keys [accounts current-account-id]} :db} [_ status]]
|
||||
(let [{old-status :status} (get accounts current-account-id)
|
||||
status-updated? (and (not= status nil)
|
||||
(not= status old-status))]
|
||||
@ -184,5 +184,6 @@
|
||||
:set-current-account
|
||||
(fn [{:accounts/keys [accounts] :as db} [_ address]]
|
||||
(let [key (:public-key (accounts address))]
|
||||
(assoc db :accounts/current-account-id address
|
||||
(assoc db
|
||||
:accounts/current-account-id address
|
||||
:current-public-key key))))
|
Loading…
x
Reference in New Issue
Block a user