diff --git a/src/components/global/Head.astro b/src/components/global/Head.astro index 495e94e..b13a33c 100644 --- a/src/components/global/Head.astro +++ b/src/components/global/Head.astro @@ -5,13 +5,13 @@ import i18next, { t } from "i18next"; // Cookies /// Language //// If the user is new to the site, set English as default -if (Astro.cookies.get("Language") === undefined) { +if (Astro.cookies.get("Language").value === undefined) { Astro.cookies.set("Language", "EN", {path: "/",sameSite: 'strict'}) } /// Telemtry //// Users should be opted-out by default -if (Astro.cookies.get("Telemtry") === undefined) { +if (Astro.cookies.get("Telemtry").value === undefined) { Astro.cookies.set("Telemtry", "Disabled", {path: "/",sameSite: 'strict'}) }