1
0

channels_list: do not add extra whitespaces when displaying amounts in HTLCs

This commit is contained in:
ThomasV
2022-05-26 09:04:46 +02:00
parent 79578d6c18
commit 035c877813

View File

@@ -87,7 +87,7 @@ class ChannelsList(MyTreeView):
bal_other = chan.balance(other)//1000
bal_minus_htlcs_other = chan.balance_minus_outgoing_htlcs(other)//1000
if bal_other != bal_minus_htlcs_other:
label += ' (+' + self.parent.format_amount(bal_other - bal_minus_htlcs_other, whitespaces=True) + ')'
label += ' (+' + self.parent.format_amount(bal_other - bal_minus_htlcs_other, whitespaces=False) + ')'
else:
assert isinstance(chan, ChannelBackup)
label = ''