From 28c6d46c49cec705879c1da0ba7b6b3f08013ce8 Mon Sep 17 00:00:00 2001 From: Goran Jovic Date: Mon, 19 Nov 2018 15:26:21 +0100 Subject: [PATCH] bug #6768 - updating enabled tokens before navigation to wallet Signed-off-by: Goran Jovic --- src/status_im/ui/screens/wallet/navigation.cljs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/status_im/ui/screens/wallet/navigation.cljs b/src/status_im/ui/screens/wallet/navigation.cljs index 455300ff09..dc845d414c 100644 --- a/src/status_im/ui/screens/wallet/navigation.cljs +++ b/src/status_im/ui/screens/wallet/navigation.cljs @@ -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))