Allow reporting 0 fiat profit.
This commit is contained in:
parent
4bc2207981
commit
fbb23bcfc3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user