remove a few unnecessary Sentry.captureExceptions
This commit is contained in:
parent
0189f99c36
commit
c515c7c4cf
|
@ -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,
|
||||
|
|
|
@ -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 };
|
||||
}
|
||||
};
|
||||
|
|
|
@ -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);
|
||||
};
|
||||
|
|
Reference in New Issue