Fix ErrorBoundary issue

This commit is contained in:
Grant 2024-07-13 12:07:46 -06:00
parent 013f5b8bb5
commit 582bfa568e
1 changed files with 3 additions and 1 deletions

View File

@ -7,7 +7,9 @@ import Bugsnag from "@bugsnag/js";
import BugsnagPluginReact from "@bugsnag/plugin-react"; import BugsnagPluginReact from "@bugsnag/plugin-react";
import BugsnagPerformance from "@bugsnag/browser-performance"; import BugsnagPerformance from "@bugsnag/browser-performance";
let ErrorBoundary: any = <></>; let ErrorBoundary: any = ({ children }: React.PropsWithChildren) => (
<>{children}</>
);
if (import.meta.env.VITE_BUGSNAG_KEY) { if (import.meta.env.VITE_BUGSNAG_KEY) {
Bugsnag.start({ Bugsnag.start({