diff --git a/src/lib/utils/formatLocaleNumber.ts b/src/lib/utils/formatLocaleNumber.ts index 202d6e9248..4b3a441dbf 100644 --- a/src/lib/utils/formatLocaleNumber.ts +++ b/src/lib/utils/formatLocaleNumber.ts @@ -15,6 +15,7 @@ export default function formatLocaleNumber({ number, locale, sigFigs, options = } else { localeArg = [locale, DEFAULT_LOCALE] } + options.maximumSignificantDigits = options.maximumSignificantDigits || sigFigs if (typeof number === 'number') { return number.toLocaleString(localeArg, options) } else {