diff --git a/resources/js/Layouts/GuestLayout.vue b/resources/js/Layouts/GuestLayout.vue index 51cc6c7..6a1c25a 100644 --- a/resources/js/Layouts/GuestLayout.vue +++ b/resources/js/Layouts/GuestLayout.vue @@ -192,14 +192,14 @@ watch(ccodes, (codes) => { console.log("NNN=", codes); console.log("IP=", geoip.value); - let fonud = false; + let found = false; settingsStore.ccountry_list.forEach((c) => { if (c.code == geoip.value.iso_code) { settingsStore.country = c; found = true; } }); - if (fonud == false) settingsStore.country = settingsStore.ccountry_list.filter((c) => {return c.code == 'GB'})[0]; + if (found == 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,settingsStore.currency); diff --git a/vite.config.js b/vite.config.js index 692682a..465b260 100644 --- a/vite.config.js +++ b/vite.config.js @@ -19,9 +19,9 @@ export default defineConfig({ build: { assetsInlineLimit: 0 }, - // esbuild: { - // drop: ['console', 'debugger'], - // }, + esbuild: { + drop: ['console', 'debugger'], + }, resolve: { dedupe: ["vue"], }