Skip to content

Commit

Permalink
Merge branch 'set-default-country' into 'master'
Browse files Browse the repository at this point in the history
set "United States" as default country for company in installation wizard

See merge request mohit.panjvani/crater-web!1442
  • Loading branch information
mohitpanjwani committed Feb 16, 2022
2 parents 6a3e9e1 + e24a89f commit db7a084
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,11 @@ onMounted(async () => {
isFetchingInitialData.value = true
await globalStore.fetchCountries()
isFetchingInitialData.value = false
// set default country
companyForm.address.country_id = globalStore.countries.find((country) => {
return country.code == 'US'
})?.id
})
const rules = {
Expand Down

0 comments on commit db7a084

Please sign in to comment.