interact: skip total == 0 balance

This commit is contained in:
c9s 2022-01-16 01:06:47 +08:00
parent d1cfaec7d3
commit 5d54e6fded

View File

@ -69,6 +69,10 @@ func (it *CoreInteraction) Commands(i *interact.Interact) {
message := "Your balances\n"
balances := session.Account.Balances()
for _, balance := range balances {
if balance.Total() == 0 {
continue
}
message += "- " + balance.String() + "\n"
}