Merge branch 'develop' into 517-ts-commit-lint

This commit is contained in:
Palash 2022-06-30 21:35:18 +05:30 committed by GitHub
commit e839920b3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,17 +7,13 @@ export const getYAxisFormattedValue = (
let decimalPrecision: number | undefined;
const parsedValue = getValueFormat(format)(
parseFloat(value),
12,
12,
undefined,
undefined,
undefined,
);
try {
const decimalSplitted = parsedValue.text.split('.');
if (
decimalSplitted.length === 1 ||
parseFloat(parsedValue.text) === parseInt(parsedValue.text, 10)
) {
if (decimalSplitted.length === 1) {
decimalPrecision = 0;
} else {
const decimalDigits = decimalSplitted[1].split('');