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:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user