From 6449924e80bb0da8a9f5355a867e00f53537cfa2 Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Wed, 30 Mar 2022 14:13:35 +0200 Subject: [PATCH] fix: No plus before zero decay --- frontend/src/filters/amount.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/filters/amount.js b/frontend/src/filters/amount.js index ded1cceb7..97340117d 100644 --- a/frontend/src/filters/amount.js +++ b/frontend/src/filters/amount.js @@ -13,6 +13,6 @@ const amount = (value) => { const GDD = (value) => { value = amount(value) if (value === '') return '' - if (!value.match(/^− /)) value = '+ ' + value + if (!value.match(/^− /) && !value.match(/^0[.,]00$/)) value = '+ ' + value return value + ' GDD' }