mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-21 00:58:40 +02:00
History: fiat return ? if not usd before websocket connection
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user