From f1b4eb6c562539ca24e81b56351be2ad19b5a7d9 Mon Sep 17 00:00:00 2001 From: rating89us <45968869+rating89us@users.noreply.github.com> Date: Wed, 8 Jul 2020 15:05:11 +0200 Subject: [PATCH] history: remove trailing zeros in amount + fix amount display --- pages/History.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/History.qml b/pages/History.qml index 82d4abfb..bf2b8c39 100644 --- a/pages/History.qml +++ b/pages/History.qml @@ -1511,7 +1511,7 @@ Rectangle { "i": i, "isout": isout, "amount": Number(amount), - "displayAmount": displayAmount + " XMR", + "displayAmount": Utils.removeTrailingZeros(displayAmount.toFixed(12)) + " XMR", "hash": hash, "paymentId": paymentId, "address": address,