From 095b6dab0f623006e9f46e19ae01c9fdca1e7c9d Mon Sep 17 00:00:00 2001 From: Sander van Grieken Date: Sat, 11 Feb 2023 09:56:09 +0100 Subject: [PATCH] qml: fix display of negative millisat amounts in qefx.py for historic amounts too --- electrum/gui/qml/qefx.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electrum/gui/qml/qefx.py b/electrum/gui/qml/qefx.py index 9cd3741ff..ba1e0d1c7 100644 --- a/electrum/gui/qml/qefx.py +++ b/electrum/gui/qml/qefx.py @@ -118,7 +118,7 @@ class QEFX(QObject, QtEventListener): @pyqtSlot(QEAmount, str, bool, result=str) def fiatValueHistoric(self, satoshis, timestamp, plain=True): if isinstance(satoshis, QEAmount): - satoshis = satoshis.msatsInt / 1000 if satoshis.msatsInt > 0 else satoshis.satsInt + satoshis = satoshis.msatsInt / 1000 if satoshis.msatsInt != 0 else satoshis.satsInt else: try: sd = Decimal(satoshis)