Add token symbol to balance load fail error message
Signed-off-by: Pedro Pombeiro <pombeirp@users.noreply.github.com>
This commit is contained in:
parent
ac2780e577
commit
fd1dffd38d
|
@ -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))))
|
||||||
|
|
Loading…
Reference in New Issue