mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-22 01:28:43 +02:00
Development
This commit is contained in:
@@ -85,9 +85,8 @@ double Prices::convert(const QString &symbolFrom, const QString &symbolTo, doubl
|
||||
}
|
||||
|
||||
void Prices::fiatPricesReceived(const QJsonObject &data) {
|
||||
QJsonObject rates = data.value("rates").toObject();
|
||||
for(const auto ¤cy: fiat.keys())
|
||||
if(rates.contains(currency))
|
||||
this->rates.insert(currency, rates.value(currency).toDouble());
|
||||
if(data.contains(currency))
|
||||
this->rates.insert(currency, data.value(currency).toDouble());
|
||||
emit fiatPricesUpdated();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user