Skip to content

Commit 1b4e77c

Browse files
authored
Removed test error for sentry.io
1 parent 2596251 commit 1b4e77c

3 files changed

Lines changed: 3 additions & 9 deletions

File tree

src/App.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import React from "react";
2-
import ErrorButton from "./components/ErrorButton";
32
import ToolCard from "./components/ToolCard";
43
import Calculator from "./tools/Calculator";
54
import PasswordGenerator from "./tools/PasswordGenerator";
@@ -16,8 +15,7 @@ const tools = [
1615
export default function App() {
1716
return (
1817
<main className="tool-grid">
19-
<ErrorButton /> {/* 👈 click this to send a test error */}
20-
{tools.map((tool) => (
18+
{tools.map((tool) => (
2119
<ToolCard key={tool.name} name={tool.name} content={tool.component} />
2220
))}
2321
</main>

src/main.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,4 @@ const container = document.getElementById("app");
1313
if (!container) throw new Error("No root container found");
1414

1515
const root = createRoot(container);
16-
root.render(<App />);
17-
18-
Sentry.captureException(new Error("Manual test event"));
16+
root.render(<App />);

src/sentry.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,4 @@ Sentry.init({
1515
replaysOnErrorSampleRate: 1.0,
1616
sendDefaultPii: true,
1717
enableTracing: true
18-
});
19-
20-
Sentry.captureException(new Error("Startup test error"));
18+
});

0 commit comments

Comments
 (0)