diff --git a/apps/frontend/src/gloogle.ffi.mjs b/apps/frontend/src/gloogle.ffi.mjs index bffca58..fa408db 100644 --- a/apps/frontend/src/gloogle.ffi.mjs +++ b/apps/frontend/src/gloogle.ffi.mjs @@ -24,9 +24,8 @@ export function scrollTo(id) { export function captureMessage(content) { const isDev = !!import.meta.env.DEV if (isDev) return content - const isSentryDefined = typeof Sentry !== 'undefined' - const canCaptureMessage = Sentry?.captureMessage === 'function' - if (isSentryDefined && canCaptureMessage) Sentry.captureMessage(content) + if (typeof Sentry !== 'undefined' && Sentry?.captureMessage === 'function') + Sentry.captureMessage(content) return content }