From f54d3ac9d05570f22a352735f848dbfa3fcde579 Mon Sep 17 00:00:00 2001 From: Mawoka Date: Sat, 9 Apr 2022 12:49:41 +0200 Subject: [PATCH] :bug: Fixed undefined where sentry cant be disabled --- frontend/src/routes/__layout.svelte | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/routes/__layout.svelte b/frontend/src/routes/__layout.svelte index 3ba518c..a839361 100644 --- a/frontend/src/routes/__layout.svelte +++ b/frontend/src/routes/__layout.svelte @@ -8,7 +8,8 @@ initLocalizationContext(); - if (import.meta.env.VITE_SENTRY !== null) { + if (import.meta.env.VITE_SENTRY !== undefined) { + console.log(import.meta.env.VITE_SENTRY) Sentry.init({ dsn: String(import.meta.env.VITE_SENTRY), integrations: [new BrowserTracing()],