Skip to content
Snippets Groups Projects
Commit 582bfa56 authored by Grant's avatar Grant
Browse files

Fix ErrorBoundary issue

parent 013f5b8b
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,9 @@ import Bugsnag from "@bugsnag/js";
import BugsnagPluginReact from "@bugsnag/plugin-react";
import BugsnagPerformance from "@bugsnag/browser-performance";
let ErrorBoundary: any = <></>;
let ErrorBoundary: any = ({ children }: React.PropsWithChildren) => (
<>{children}</>
);
if (import.meta.env.VITE_BUGSNAG_KEY) {
Bugsnag.start({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment