diff --git a/packages/ui/src/components/address.tsx b/packages/ui/src/components/address.tsx index bdc11401..bf023ecb 100644 --- a/packages/ui/src/components/address.tsx +++ b/packages/ui/src/components/address.tsx @@ -136,7 +136,7 @@ const COUNTRIES: Country[] = [ { abbreviation: 'US', name: 'United States' }, ]; -const mapCountryAbbreviationToStates = { +const mapCountryAbbreviationToStates: Record = { CA: CA_PROVINCES, US: USA_STATES, }; @@ -163,7 +163,10 @@ Address.Country = function Country(props: SelectProps) { const { setCountryAbbreviation } = useContext(AddressContext); return ( - setCountryAbbreviation(e.currentTarget.value)} + > {COUNTRIES.map((country: Country) => { return (