Browse Source

History: fiat return ? if not usd before websocket connection

1.0.0
tobtoht 3 months ago
parent
commit
19e8ed1b19
Signed by: tobtoht GPG Key ID: 1CADD27F41F45C3C
  1. 3
      src/model/TransactionHistoryModel.cpp

3
src/model/TransactionHistoryModel.cpp

@ -181,6 +181,9 @@ QVariant TransactionHistoryModel::parseTransactionInfo(const TransactionInfo &tI
if (role == Qt::UserRole) {
return usd_amount;
}
if (usd_amount == 0.0) {
return QString("?");
}
double fiat_rounded = ceil(Utils::roundSignificant(usd_amount, 3) * 100.0) / 100.0;
return QString("%1").arg(Utils::amountToCurrencyString(fiat_rounded, preferredFiatCurrency));

Loading…
Cancel
Save