From a51b3bdbfbbc075d2f785012307ffbb68382e2a5 Mon Sep 17 00:00:00 2001 From: accumulator Date: Thu, 4 Jan 2024 17:31:00 +0100 Subject: [PATCH] qml: show fiat price when historic rates are enabled and no timestamp available Co-authored-by: ghost43 --- electrum/gui/qml/components/controls/HistoryItemDelegate.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electrum/gui/qml/components/controls/HistoryItemDelegate.qml b/electrum/gui/qml/components/controls/HistoryItemDelegate.qml index 0c7940bb4..3491a2a9a 100644 --- a/electrum/gui/qml/components/controls/HistoryItemDelegate.qml +++ b/electrum/gui/qml/components/controls/HistoryItemDelegate.qml @@ -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)) {