fix: retain sig figs in localized nums (#3280)

This commit is contained in:
Zach Pomerantz 2022-02-10 08:51:29 -08:00 committed by GitHub
parent 69ed7015ab
commit 02a77254c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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 {