diff --git a/strr-web/components/bcros/form-section/property/Address.vue b/strr-web/components/bcros/form-section/property/Address.vue index aafa9b2e..1730582e 100644 --- a/strr-web/components/bcros/form-section/property/Address.vue +++ b/strr-web/components/bcros/form-section/property/Address.vue @@ -22,7 +22,7 @@
- + import { CountryItem } from '@/interfaces/address-i' +import countries from '@/utils/countries.json' const t = useNuxtApp().$i18n.t const country = defineModel('country') @@ -84,4 +85,11 @@ const { country.value = defaultCountryIso3 +onMounted(() => { + countryItems.value = countries.map(country => ({ + value: country.iso3, + name: country.en + })) +}) + diff --git a/strr-web/stores/strr.ts b/strr-web/stores/strr.ts index 9290e5ee..e5bd79d5 100644 --- a/strr-web/stores/strr.ts +++ b/strr-web/stores/strr.ts @@ -91,7 +91,7 @@ export const formState: CreateAccountFormStateI = reactive({ whichPlatform: undefined, useMailing: false, nickname: '', - country: 'Canada', + country: 'CAN', address: undefined, addressLineTwo: undefined, city: undefined,