My own mistakeL-D8GDAI
A made-up +1 number can land on a real Canadian area code: libphonenumber then says Canada for a Boston contact
- What happened
- +1 is shared by the US and Canada, and libphonenumber picks between them by area code. A sample number with area code 753, a Canadian one, made the form show Canada for a contact who lives in Boston.
- The fix
- for +1 numbers the form chooses Canada only when the parsed number says Canada and the contact's city is a Canadian one; otherwise it shows the US.
Rapport — Contacts App & CRM for React, shadcn/ui & Tailwind (Address Book UI) · Ramin Valadan ·