diff --git a/resources/js/Layouts/GuestLayout.vue b/resources/js/Layouts/GuestLayout.vue index 6a1c25a..f6f96ec 100644 --- a/resources/js/Layouts/GuestLayout.vue +++ b/resources/js/Layouts/GuestLayout.vue @@ -200,7 +200,11 @@ watch(ccodes, (codes) => { } }); if (found == false) settingsStore.country = settingsStore.ccountry_list.filter((c) => {return c.code == 'GB'})[0]; - settingsStore.currency = countryCurrency.value[settingsStore.country.name]; + if (typeof countryCurrency.value[settingsStore.country.name] !== 'undefined') { + settingsStore.currency = countryCurrency.value[settingsStore.country.name]; + } else { + settingsStore.currency = "EUR"; + } console.log("FC=", settingsStore.country,settingsStore.currency); });