Add token symbol to balance load fail error message

Signed-off-by: Pedro Pombeiro <pombeirp@users.noreply.github.com>
This commit is contained in:
Dmitry Novotochinov 2018-06-19 19:20:19 +03:00 committed by Pedro Pombeiro
parent ac2780e577
commit fd1dffd38d
No known key found for this signature in database
GPG Key ID: A65DEB11E4BBC647
1 changed files with 3 additions and 3 deletions

View File

@ -67,7 +67,7 @@
:contract contract :contract contract
:account-id account-id :account-id account-id
:on-success #(re-frame/dispatch [success-event symbol %]) :on-success #(re-frame/dispatch [success-event symbol %])
:on-error #(re-frame/dispatch [error-event %])}))))) :on-error #(re-frame/dispatch [error-event symbol %])})))))
(reg-fx (reg-fx
:get-transactions :get-transactions
@ -211,8 +211,8 @@
(handlers/register-handler-db (handlers/register-handler-db
:update-token-balance-fail :update-token-balance-fail
(fn [db [_ err]] (fn [db [_ symbol err]]
(log/debug "Unable to get token balance: " err) (log/debug "Unable to get token " symbol "balance: " err)
(-> db (-> db
(assoc-error-message :balance-update err) (assoc-error-message :balance-update err)
(assoc-in [:wallet :balance-loading?] false)))) (assoc-in [:wallet :balance-loading?] false))))