Skip to content

Commit

Permalink
fixing country dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Schantz authored and Sam Schantz committed May 27, 2024
1 parent 49f241c commit acfad5e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion strr-web/components/bcros/form-section/property/Address.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
</UFormGroup>
</div>
<div class="flex flex-row justify-between w-full mb-[40px] mobile:mb-[16px]">
<UFormGroup name="address" class="pr-[16px] flex-grow">
<UFormGroup name="Address" class="pr-[16px] flex-grow">
<UInput
:id="id"
v-model="address"
Expand Down Expand Up @@ -54,6 +54,7 @@

<script setup lang="ts">
import { CountryItem } from '@/interfaces/address-i'
import countries from '@/utils/countries.json'
const t = useNuxtApp().$i18n.t
const country = defineModel<string>('country')
Expand Down Expand Up @@ -84,4 +85,11 @@ const {
country.value = defaultCountryIso3
onMounted(() => {
countryItems.value = countries.map(country => ({
value: country.iso3,
name: country.en
}))
})
</script>
2 changes: 1 addition & 1 deletion strr-web/stores/strr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export const formState: CreateAccountFormStateI = reactive({
whichPlatform: undefined,
useMailing: false,
nickname: '',
country: 'Canada',
country: 'CAN',
address: undefined,
addressLineTwo: undefined,
city: undefined,
Expand Down

0 comments on commit acfad5e

Please sign in to comment.