Allow reporting 0 fiat profit.

This commit is contained in:
eSeR1805 2022-05-06 19:22:52 +03:00
parent 4bc2207981
commit fbb23bcfc3
No known key found for this signature in database
GPG Key ID: BA53686259B46936

View File

@ -244,7 +244,7 @@ class RPC:
stake_currency,
fiat_display_currency
)
if fiat_profit and not isnan(fiat_profit):
if not isnan(fiat_profit):
profit_str += f" ({fiat_profit:.2f})"
fiat_profit_sum = fiat_profit if isnan(fiat_profit_sum) \
else fiat_profit_sum + fiat_profit