mirror of
https://github.com/status-im/status-react.git
synced 2025-01-12 03:54:32 +00:00
bug #6768 - updating enabled tokens before navigation to wallet
Signed-off-by: Goran Jovic <goranjovic@gmail.com>
This commit is contained in:
parent
d5dde69af9
commit
28c6d46c49
@ -6,11 +6,15 @@
|
||||
|
||||
(defmethod navigation/preload-data! :wallet
|
||||
[db _]
|
||||
;;TODO(goranjovic) - get rid of this preload hook completely
|
||||
(re-frame/dispatch [:wallet.ui/pull-to-refresh])
|
||||
(re-frame/dispatch [:update-wallet])
|
||||
(assoc-in db [:wallet :current-tab] 0))
|
||||
|
||||
(defmethod navigation/preload-data! :wallet-modal
|
||||
[db _]
|
||||
;;TODO(goranjovic) - get rid of this preload hook completely
|
||||
(re-frame/dispatch [:wallet.ui/pull-to-refresh])
|
||||
(re-frame/dispatch [:update-wallet])
|
||||
(re-frame/dispatch [:update-transactions])
|
||||
(assoc-in db [:wallet :modal-history?] false))
|
||||
|
Loading…
x
Reference in New Issue
Block a user