mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-03 12:30:07 +00:00
fix #3952
This commit is contained in:
parent
b7b592fd6e
commit
99710099fb
1 changed files with 1 additions and 1 deletions
|
@ -1027,7 +1027,7 @@ class Abstract_Wallet(PrintError):
|
|||
fiat_default = False
|
||||
item['fiat_value'] = Fiat(fiat_value, fx.ccy)
|
||||
item['fiat_default'] = fiat_default
|
||||
if value < 0:
|
||||
if value is not None and value < 0:
|
||||
ap, lp = self.capital_gain(tx_hash, fx.timestamp_rate, fx.ccy)
|
||||
cg = lp - ap
|
||||
item['acquisition_price'] = Fiat(ap, fx.ccy)
|
||||
|
|
Loading…
Add table
Reference in a new issue