mirror of
https://github.com/feather-wallet/feather.git
synced 2025-01-08 20:09:43 +00:00
History: fiat return ? if not usd before websocket connection
This commit is contained in:
parent
b8dbf128d2
commit
19e8ed1b19
1 changed files with 3 additions and 0 deletions
|
@ -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…
Reference in a new issue