diff --git a/src/features/IndexPage/IndexPage.tsx b/src/features/IndexPage/IndexPage.tsx index 2b1c33f..b4f7711 100644 --- a/src/features/IndexPage/IndexPage.tsx +++ b/src/features/IndexPage/IndexPage.tsx @@ -1,5 +1,4 @@ import { GetStaticProps } from 'next'; -import * as Sentry from '@sentry/nextjs'; import { createClient, Profession, @@ -77,9 +76,7 @@ export const getStaticProps: GetStaticProps = async () => { resp.professions.items ); } - } catch (e) { - Sentry.captureException(e); - } + } catch (e) {} return { props: pageProps, diff --git a/src/features/QualificationPage/features/TestPage/TestPage.tsx b/src/features/QualificationPage/features/TestPage/TestPage.tsx index 7357e30..9e26fd2 100644 --- a/src/features/QualificationPage/features/TestPage/TestPage.tsx +++ b/src/features/QualificationPage/features/TestPage/TestPage.tsx @@ -1,5 +1,4 @@ import { GetStaticPaths, GetStaticProps } from 'next'; -import * as Sentry from '@sentry/nextjs'; import { isString, isNil } from 'lodash'; import { polishPlurals } from 'polish-plurals'; import { @@ -127,7 +126,6 @@ export const getStaticProps: GetStaticProps = revalidate: REVALIDATE_SUCCESS, }; } catch (e) { - Sentry.captureException(e); return { notFound: true, revalidate: REVALIDATE_ERROR }; } }; diff --git a/src/features/QualificationPage/features/TestPage/components/Test/Test.tsx b/src/features/QualificationPage/features/TestPage/components/Test/Test.tsx index e602832..2339bbf 100644 --- a/src/features/QualificationPage/features/TestPage/components/Test/Test.tsx +++ b/src/features/QualificationPage/features/TestPage/components/Test/Test.tsx @@ -1,6 +1,5 @@ import { Fragment, useRef, useState } from 'react'; import { useUpdateEffect } from 'react-use'; -import * as Sentry from '@sentry/nextjs'; import clsx from 'clsx'; import { usePrompt } from 'libs/hooks'; import { @@ -110,9 +109,7 @@ const Test = ({ initialQuestions, qualification }: TestProps) => { }); resetValues(newQuestions); - } catch (e) { - Sentry.captureException(e); - } + } catch (e) {} setIsFetching(false); };