Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Catches errors with Intl.NumberFormat and adds fallback #4660

Merged
merged 2 commits into from
Oct 13, 2022

Conversation

madsnedergaard
Copy link
Member

@madsnedergaard madsnedergaard commented Oct 13, 2022

Issue

Closes #4630, closes #4570, closes #4533

Description

This catches exceptions where browsers don't support Intl.NumberFormat with unit param.

I considered if we could test in a smarter way, but seeing as formatJS also does a try-catch to check if it should polyfill, I reckon it should be fine to do the same :)

Preview

Only tested by throwing inside the try block, haven't actually tested on an older version of Safari

Screenshot 2022-10-13 at 16 11 01

@madsnedergaard madsnedergaard enabled auto-merge (squash) October 13, 2022 15:00
@madsnedergaard madsnedergaard merged commit a7ebc01 into master Oct 13, 2022
@madsnedergaard madsnedergaard deleted the mn/app/fix-intl-numberformat-support branch October 13, 2022 15:03
@VIKTORVAV99
Copy link
Member

@madsnedergaard don't forget to push a new mobile build for this release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants