Commit f5c2251
fix(pos-app): replace Intl.NumberFormat.formatToParts with format to support Hermes (#410)
* fix(pos-app): replace Intl.NumberFormat.formatToParts with format to support Hermes
formatToParts is not available in Hermes, causing crashes when pressing number buttons in the amount input. Replace with a simpler approach using format() which extracts the group separator by stripping all digits.
Fixes crash on Android/iOS when entering amount.
* fix(pos-app): bump versionCode and fix misleading comment
Increment Android versionCode to 20 and update comment in
getGroupSeparator to accurately describe the digit-stripping approach.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 8f62970 commit f5c2251
File tree
2 files changed
+6
-3
lines changed- dapps/pos-app
- components/big-amount-input/utils
2 files changed
+6
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
37 | 40 | | |
38 | 41 | | |
39 | 42 | | |
| |||
0 commit comments