diff --git a/apps/web/public/locales/en/app.json b/apps/web/public/locales/en/app.json index 4e916a8d6..b1685b024 100644 --- a/apps/web/public/locales/en/app.json +++ b/apps/web/public/locales/en/app.json @@ -270,7 +270,7 @@ "downloadICSFile": "Download ICS File", "schedulateDate": "Scheduled Date", "timeZoneChangeDetectorTitle": "Timezone Change Detected", - "timeZoneChangeDetectorMessage": "Your timezone has changed to {currentTimeZone}. Do you want to update your preferences?", + "timeZoneChangeDetectorMessage": "Your timezone has changed to {currentTimeZone}. Do you want to update your preferences?", "yesUpdateTimezone": "Yes, update my timezone", "noKeepCurrentTimezone": "No, keep the current timezone", "annualBenefit": "{count} months free" diff --git a/apps/web/src/app/[locale]/timezone-change-detector.tsx b/apps/web/src/app/[locale]/timezone-change-detector.tsx index 77f8d3c72..72e2b3a9d 100644 --- a/apps/web/src/app/[locale]/timezone-change-detector.tsx +++ b/apps/web/src/app/[locale]/timezone-change-detector.tsx @@ -8,6 +8,7 @@ import { DialogHeader, DialogTitle, } from "@rallly/ui/dialog"; +import * as Sentry from "@sentry/nextjs"; import { usePostHog } from "posthog-js/react"; import React, { useState } from "react"; @@ -25,7 +26,7 @@ export function TimeZoneChangeDetector() { return cachedPreviousTimeZone; } } catch (e) { - console.error(e); + Sentry.captureException(e); } const timeZone = preferences.timeZone ?? getBrowserTimeZone(); @@ -33,7 +34,7 @@ export function TimeZoneChangeDetector() { try { localStorage.setItem("previousTimeZone", timeZone); } catch (e) { - console.error(e); + Sentry.captureException(e); } return timeZone; @@ -61,10 +62,11 @@ export function TimeZoneChangeDetector() { /> -
+