Browse Source

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

Co-authored-by: ghost43 <somber.night@protonmail.com>
master
accumulator 2 years ago committed by GitHub
parent
commit
a51b3bdbfb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      electrum/gui/qml/components/controls/HistoryItemDelegate.qml

2
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)) {

Loading…
Cancel
Save