remove a few unnecessary Sentry.captureExceptions
This commit is contained in:
parent
0189f99c36
commit
c515c7c4cf
|
@ -1,5 +1,4 @@
|
||||||
import { GetStaticProps } from 'next';
|
import { GetStaticProps } from 'next';
|
||||||
import * as Sentry from '@sentry/nextjs';
|
|
||||||
import {
|
import {
|
||||||
createClient,
|
createClient,
|
||||||
Profession,
|
Profession,
|
||||||
|
@ -77,9 +76,7 @@ export const getStaticProps: GetStaticProps = async () => {
|
||||||
resp.professions.items
|
resp.professions.items
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {}
|
||||||
Sentry.captureException(e);
|
|
||||||
}
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
props: pageProps,
|
props: pageProps,
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import { GetStaticPaths, GetStaticProps } from 'next';
|
import { GetStaticPaths, GetStaticProps } from 'next';
|
||||||
import * as Sentry from '@sentry/nextjs';
|
|
||||||
import { isString, isNil } from 'lodash';
|
import { isString, isNil } from 'lodash';
|
||||||
import { polishPlurals } from 'polish-plurals';
|
import { polishPlurals } from 'polish-plurals';
|
||||||
import {
|
import {
|
||||||
|
@ -127,7 +126,6 @@ export const getStaticProps: GetStaticProps<TestPageProps, TestPageParams> =
|
||||||
revalidate: REVALIDATE_SUCCESS,
|
revalidate: REVALIDATE_SUCCESS,
|
||||||
};
|
};
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
Sentry.captureException(e);
|
|
||||||
return { notFound: true, revalidate: REVALIDATE_ERROR };
|
return { notFound: true, revalidate: REVALIDATE_ERROR };
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import { Fragment, useRef, useState } from 'react';
|
import { Fragment, useRef, useState } from 'react';
|
||||||
import { useUpdateEffect } from 'react-use';
|
import { useUpdateEffect } from 'react-use';
|
||||||
import * as Sentry from '@sentry/nextjs';
|
|
||||||
import clsx from 'clsx';
|
import clsx from 'clsx';
|
||||||
import { usePrompt } from 'libs/hooks';
|
import { usePrompt } from 'libs/hooks';
|
||||||
import {
|
import {
|
||||||
|
@ -110,9 +109,7 @@ const Test = ({ initialQuestions, qualification }: TestProps) => {
|
||||||
});
|
});
|
||||||
|
|
||||||
resetValues(newQuestions);
|
resetValues(newQuestions);
|
||||||
} catch (e) {
|
} catch (e) {}
|
||||||
Sentry.captureException(e);
|
|
||||||
}
|
|
||||||
|
|
||||||
setIsFetching(false);
|
setIsFetching(false);
|
||||||
};
|
};
|
||||||
|
|
Reference in New Issue