mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
fix: No plus before zero decay
This commit is contained in:
parent
9ce0229345
commit
6449924e80
@ -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'
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user