Skip convert if balance is zero
This commit is contained in:
parent
81ed7627bf
commit
45239724c6
@ -390,7 +390,8 @@ def _balance(bot: Bot, update: Update) -> None:
|
|||||||
if c['Balance'] or c['Available'] or c['Pending']
|
if c['Balance'] or c['Available'] or c['Pending']
|
||||||
]
|
]
|
||||||
if not balances:
|
if not balances:
|
||||||
output = '`All balances are zero.`'
|
send_msg('`All balances are zero.`')
|
||||||
|
return
|
||||||
|
|
||||||
total = 0.0
|
total = 0.0
|
||||||
for currency in balances:
|
for currency in balances:
|
||||||
|
Loading…
Reference in New Issue
Block a user