diff --git a/electrum/gui/qml/components/controls/FormattedAmount.qml b/electrum/gui/qml/components/controls/FormattedAmount.qml index 52327d7ff..04e342d89 100644 --- a/electrum/gui/qml/components/controls/FormattedAmount.qml +++ b/electrum/gui/qml/components/controls/FormattedAmount.qml @@ -24,7 +24,7 @@ GridLayout { } Label { visible: valid - text: amount.msatsInt > 0 ? Config.formatMilliSats(amount) : Config.formatSats(amount) + text: amount.msatsInt != 0 ? Config.formatMilliSats(amount) : Config.formatSats(amount) font.family: FixedFont } Label { diff --git a/electrum/gui/qml/qefx.py b/electrum/gui/qml/qefx.py index 3c31e5a9d..9cd3741ff 100644 --- a/electrum/gui/qml/qefx.py +++ b/electrum/gui/qml/qefx.py @@ -101,7 +101,7 @@ class QEFX(QObject, QtEventListener): def fiatValue(self, satoshis, plain=True): rate = self.fx.exchange_rate() 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)