Skip to content

Commit 97ade2e

Browse files
n3rdc4ptnCopilot
andauthored
Update src/mount.ts
Co-authored-by: Copilot <[email protected]>
1 parent c775fa3 commit 97ade2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mount.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import React from 'react';
55
import { Routes, useLocation, useNavigationType, createRoutesFromChildren, matchRoutes } from 'react-router-dom';
66

77
let sentryRoutes = Routes;
8-
if (import.meta.env.VITE_SENTRY_DSN.length > 0) {
8+
if (import.meta.env.VITE_SENTRY_DSN && import.meta.env.VITE_SENTRY_DSN.length > 0) {
99
Sentry.init({
1010
dsn: import.meta.env.VITE_SENTRY_DSN,
1111
// Setting this option to true will send default PII data to Sentry.

0 commit comments

Comments
 (0)