From 180c3de11cab3575243c0ba06e1914070271865d Mon Sep 17 00:00:00 2001 From: ogerly Date: Thu, 14 Oct 2021 16:06:05 +0200 Subject: [PATCH 1/2] error rounding in transactions list fixed --- frontend/src/components/DecayInformation.vue | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/frontend/src/components/DecayInformation.vue b/frontend/src/components/DecayInformation.vue index 04a850040..2b9e38306 100644 --- a/frontend/src/components/DecayInformation.vue +++ b/frontend/src/components/DecayInformation.vue @@ -65,7 +65,7 @@
{{ $t('decay.decay') }}
-
- {{ decay.balance }}
+
- {{ $n(decay.balance, 'decimal') }}

@@ -81,8 +81,8 @@
{{ $t('decay.received') }}
-
- {{ balance }}
-
+ {{ balance }}
+
- {{ $n(balance, 'decimal') }}
+
+ {{ $n(balance, 'decimal') }}
@@ -91,7 +91,7 @@
{{ $t('decay.decay') }}
-
- {{ decay.balance }}
+
- {{ $n(decay.balance, 'decimal') }}
@@ -101,10 +101,10 @@
- - {{ parseInt(balance) + decay.balance }} + - {{ $n(parseInt(balance) + decay.balance, 'decimal') }}
- {{ parseInt(balance) - decay.balance }} + {{ $n(parseInt(balance) - decay.balance, 'decimal') }}
From 8aecbd72f186bea7ff8e7456c9b62f92eeb104b3 Mon Sep 17 00:00:00 2001 From: Alexander Friedland Date: Thu, 14 Oct 2021 16:14:05 +0200 Subject: [PATCH 2/2] aa --- frontend/src/components/DecayInformation.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/DecayInformation.vue b/frontend/src/components/DecayInformation.vue index 2b9e38306..1bb972dcc 100644 --- a/frontend/src/components/DecayInformation.vue +++ b/frontend/src/components/DecayInformation.vue @@ -2,7 +2,7 @@
- {{ decay ? ' -' + decay.balance + ' ' + decayStartBlockTextShort : '' }} + {{ decay ? ' -' + $n(decay.balance, 'decimal') + ' ' + decayStartBlockTextShort : '' }} {{ $t('decay.noDecay') }}