diff --git a/resources/js/Layouts/GuestLayout.vue b/resources/js/Layouts/GuestLayout.vue index 17ffafc..51cc6c7 100644 --- a/resources/js/Layouts/GuestLayout.vue +++ b/resources/js/Layouts/GuestLayout.vue @@ -193,16 +193,16 @@ watch(ccodes, (codes) => { console.log("IP=", geoip.value); let fonud = false; - scountry_list.value.forEach((c) => { + settingsStore.ccountry_list.forEach((c) => { if (c.code == geoip.value.iso_code) { settingsStore.country = c; found = true; } }); - if (fonud == false) settingsStore.country = scountry_list.value.filter((c) => {return c.code == 'GB'})[0]; + if (fonud == false) settingsStore.country = settingsStore.ccountry_list.filter((c) => {return c.code == 'GB'})[0]; settingsStore.currency = countryCurrency.value[settingsStore.country.name]; - console.log("FC=", settingsStore.country); + console.log("FC=", settingsStore.country,settingsStore.currency); }); onMounted(fetch);