From 1995eef37dda73f60523ab9e0522060ba53be303 Mon Sep 17 00:00:00 2001 From: nymkappa Date: Wed, 9 Mar 2022 12:27:33 +0100 Subject: [PATCH] Show `+` sign on positive diff adjust --- .../components/hashrate-chart/hashrate-chart.component.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/app/components/hashrate-chart/hashrate-chart.component.html b/frontend/src/app/components/hashrate-chart/hashrate-chart.component.html index 25b1db98d..b208d9c41 100644 --- a/frontend/src/app/components/hashrate-chart/hashrate-chart.component.html +++ b/frontend/src/app/components/hashrate-chart/hashrate-chart.component.html @@ -45,7 +45,9 @@ {{ diffChange.height }} {{ diffChange.difficultyShorten }} - {{ formatNumber(diffChange.change, locale, '1.2-2') }}% + + {{ diffChange.change >= 0 ? '+' : '' }}{{ formatNumber(diffChange.change, locale, '1.2-2') }}% +