Merge pull request 'History: fix fiat conversion' (#36) from tobtoht/feather:history_fiat_fix into master

Reviewed-on: https://git.wownero.com/feather/feather/pulls/36
This commit is contained in:
tobtoht 2020-10-11 13:03:24 +00:00
commit e362f2b45d

View file

@ -164,7 +164,7 @@ QVariant TransactionHistoryModel::parseTransactionInfo(const TransactionInfo &tI
return QVariant("?");
double usd_amount = usd_price * tInfo.amount();
if(this->preferredFiatSign != "$")
if(this->preferredFiatSymbol != "USD")
usd_amount = AppContext::prices->convert("USD", this->preferredFiatSymbol, usd_amount);
double fiat_rounded = ceil(Utils::roundSignificant(usd_amount, 3) * 100.0) / 100.0;