remove a few unnecessary Sentry.captureExceptions

This commit is contained in:
Dawid Wysokiński 2021-11-07 08:05:43 +01:00
parent 0189f99c36
commit c515c7c4cf
Signed by: Kichiyaki
GPG Key ID: EF14026D247EB867
3 changed files with 2 additions and 10 deletions

View File

@ -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,

View File

@ -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<TestPageProps, TestPageParams> =
revalidate: REVALIDATE_SUCCESS,
};
} catch (e) {
Sentry.captureException(e);
return { notFound: true, revalidate: REVALIDATE_ERROR };
}
};

View File

@ -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);
};