ensure that bool value is set to refreshing prop

This commit is contained in:
Roman Volosovskyi 2017-09-28 15:55:33 +02:00
parent f36dca3b5c
commit a0872fb1bf
2 changed files with 2 additions and 2 deletions

View File

@ -121,7 +121,7 @@
{:data (conj assets {}) ;; Extra map triggers rendering for add-asset
:render-fn render-asset
:on-refresh #(rf/dispatch [:update-wallet])
:refreshing (or prices-loading? balance-loading?)}]]))
:refreshing (boolean (or prices-loading? balance-loading?))}]]))
(defview wallet []
(letsubs [eth-balance [:eth-balance]

View File

@ -100,7 +100,7 @@
:render-fn render-transaction
:empty-component (empty-text (i18n/label :t/transactions-history-empty))
:on-refresh #(re-frame/dispatch [:update-transactions])
:refreshing transactions-loading?}]]))
:refreshing (boolean transactions-loading?)}]]))
(defview unsigned-list []
[]