Skip to content

Commit 75ce9c8

Browse files
committed
Remove exception
1 parent bbab8cb commit 75ce9c8

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

src/App.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ import 'antd/dist/antd.less';
77
import './App.global.less';
88

99
export default observer(() => {
10+
// useEffect(() => {
11+
// Sentry.captureException(new Error(`${process.env.NODE_ENV} exception`));
12+
// }, []);
13+
1014
return (
1115
<Router>
1216
<Main />

src/screens/hours/HoursScreen.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
import React, { useEffect, useMemo, useState } from 'react';
1+
import React, { useMemo, useState } from 'react';
22
import { Layout, Space } from 'antd';
33
import { observer } from 'mobx-react';
4-
import * as Sentry from '@sentry/electron';
54

65
import rootStore from '../../modules/RootStore';
76
import HoursCard from './components/HoursCard/HoursCard';
@@ -39,10 +38,6 @@ export default observer(function HoursView() {
3938
const tasks = useMemo(() => tasksStore.getTasksByDate(date), [date]);
4039
const timeItems = getTimeItems(tasks, date);
4140

42-
useEffect(() => {
43-
Sentry.captureException(new Error(`${process.env.NODE_ENV} exception`));
44-
}, []);
45-
4641
return (
4742
<Layout className={classes.hours}>
4843
<Space direction="vertical">

0 commit comments

Comments
 (0)