diff options
Diffstat (limited to 'src/core/utils')
| -rw-r--r-- | src/core/utils/formatValue.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/utils/formatValue.js b/src/core/utils/formatValue.js index dc78df5b..f2c17769 100644 --- a/src/core/utils/formatValue.js +++ b/src/core/utils/formatValue.js @@ -1,7 +1,7 @@ const sellingProductFormat = (value) => { if (value > 1000) { - const formattedValue = (value / 1000).toFixed(1).replace('.', ',') - return `${formattedValue.replace(/\.0$/, '')}rb+` + const formattedValue = (value / 1000).toFixed(0).replace('.', ',') + return formattedValue + 'rb+'; } else { return value.toString() } |
