From fa7eecba14a49f5570be8001b4b3da765de2d7ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Tinkl?= Date: Tue, 2 May 2023 16:05:04 +0200 Subject: [PATCH] fix(AssetsDetailView): don't display "Dummy" for zero values zero (0) is a valid change value here, it's a "stable" coin --- ui/app/AppLayouts/Wallet/views/AssetsDetailView.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/app/AppLayouts/Wallet/views/AssetsDetailView.qml b/ui/app/AppLayouts/Wallet/views/AssetsDetailView.qml index 2a13a077fe..7c67130c48 100644 --- a/ui/app/AppLayouts/Wallet/views/AssetsDetailView.qml +++ b/ui/app/AppLayouts/Wallet/views/AssetsDetailView.qml @@ -300,7 +300,7 @@ Item { readonly property double changePctHour: token.changePctHour ?? 0 maxWidth: parent.width primaryText: qsTr("Hour") - secondaryText: changePctHour ? "%1%".arg(LocaleUtils.numberToLocaleString(changePctHour, 2)) : Constants.dummyText + secondaryText: "%1%".arg(LocaleUtils.numberToLocaleString(changePctHour, 2)) secondaryLabel.customColor: changePctHour === 0 ? Theme.palette.directColor1 : changePctHour < 0 ? Theme.palette.dangerColor1 : Theme.palette.successColor1 @@ -310,7 +310,7 @@ Item { readonly property double changePctDay: token.changePctDay ?? 0 maxWidth: parent.width primaryText: qsTr("Day") - secondaryText: changePctDay ? "%1%".arg(LocaleUtils.numberToLocaleString(changePctDay, 2)) : Constants.dummyText + secondaryText: "%1%".arg(LocaleUtils.numberToLocaleString(changePctDay, 2)) secondaryLabel.customColor: changePctDay === 0 ? Theme.palette.directColor1 : changePctDay < 0 ? Theme.palette.dangerColor1 : Theme.palette.successColor1 @@ -320,7 +320,7 @@ Item { readonly property double changePct24hour: token.changePct24hour ?? 0 maxWidth: parent.width primaryText: qsTr("24 Hours") - secondaryText: changePct24hour ? "%1%".arg(LocaleUtils.numberToLocaleString(changePct24hour, 2)) : Constants.dummyText + secondaryText: "%1%".arg(LocaleUtils.numberToLocaleString(changePct24hour, 2)) secondaryLabel.customColor: changePct24hour === 0 ? Theme.palette.directColor1 : changePct24hour < 0 ? Theme.palette.dangerColor1 : Theme.palette.successColor1