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
:account-id account-id
: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
:get-transactions
@ -211,8 +211,8 @@
(handlers/register-handler-db
:update-token-balance-fail
(fn [db [_ err]]
(log/debug "Unable to get token balance: " err)
(fn [db [_ symbol err]]
(log/debug "Unable to get token " symbol "balance: " err)
(-> db
(assoc-error-message :balance-update err)
(assoc-in [:wallet :balance-loading?] false))))