This commit is contained in:
ThomasV 2018-02-21 20:57:45 +01:00
parent b7b592fd6e
commit 99710099fb
1 changed files with 1 additions and 1 deletions

View File

@ -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)