Closed isaacy2012 closed 2 years ago
@isaacy2012 can't reproduce on Safari Version 15.0 (16612.1.29.41.4, 16612)
what version you are on?
My apologies, didn't put the version number. I am on Version 14.0.2 (16610.3.7.1.9). Bug still reproducible on my end.
RangeError: style must be either "decimal", "percent", or "currency"
Similar issue seen here - may be a compatibility issue with older browsers? https://stackoverflow.com/questions/60566942/why-doesnt-intl-numberformat-work-with-units-in-safari-and-firefox
@isaacy2012 can you try https://deploy-preview-318--vaxxnz.netlify.app/locations see if it fixes it
Yes, now works great, but distances are formatted without rounding. Perhaps adding .toFixed(2)
would yield more sensible results?
@isaacy2012 should be fixed now. Thanks a lot for the report, appreciate it!
Describe the bug Page does not load at all, console shows
RangeError: style must be either "decimal", "percent", or "currency" - locale.ts:56
To Reproduce Steps to reproduce the behavior:
Screenshots If applicable, add screenshots to help explain your problem.
Device:
Additional context These are the logs from the console, and the code that seems to have the error.