Commit 4625fa4
Fix: Add explicit string[] type to validUSRegionCodes array
The array's element type was inferred as a narrow union of string
literals from CONST.COUNTRY, causing Array.includes() to reject
the generic string from parsedPhoneNumber.regionCode.
Co-authored-by: Lydia Barclay <lydiabarclay@users.noreply.github.com>1 parent 67a3152 commit 4625fa4
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
324 | 324 | | |
325 | 325 | | |
326 | 326 | | |
327 | | - | |
| 327 | + | |
328 | 328 | | |
329 | 329 | | |
330 | 330 | | |
| |||
0 commit comments