1
0

qml: show fiat price when historic rates are enabled and no timestamp available

Co-authored-by: ghost43 <somber.night@protonmail.com>
This commit is contained in:
accumulator
2024-01-04 17:31:00 +01:00
committed by GitHub
parent 5077e013f3
commit a51b3bdbfb

View File

@@ -105,7 +105,7 @@ Item {
function updateText() {
if (!Daemon.fx.enabled) {
text = ''
} else if (Daemon.fx.historicRates) {
} else if (Daemon.fx.historicRates && model.timestamp) {
text = Daemon.fx.fiatValueHistoric(model.value, model.timestamp) + ' ' + Daemon.fx.fiatCurrency
} else {
if (Daemon.fx.isRecent(model.timestamp)) {