From d5fe982e3b17ad88ff0400485e97def3a02fb386 Mon Sep 17 00:00:00 2001 From: Abhinav-grd Date: Mon, 8 Mar 2021 18:14:07 +0530 Subject: [PATCH] updated sentry export function name --- src/pages/_app.tsx | 4 ++-- src/utils/sentry.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx index 23ba52742..2b8e2f520 100644 --- a/src/pages/_app.tsx +++ b/src/pages/_app.tsx @@ -15,7 +15,7 @@ import 'photoswipe/dist/photoswipe.css'; import localForage from 'localforage'; import UploadButton from 'pages/gallery/components/UploadButton'; import FullScreenDropZone from 'components/FullScreenDropZone'; -import { init } from '../utils/sentry'; +import { sentryInit } from '../utils/sentry'; import { runningInBrowser } from 'utils/common/utilFunctions'; if (runningInBrowser()) { @@ -150,7 +150,7 @@ const FlexContainer = styled.div` margin: 16px; `; -init(); +sentryInit(); export default function App({ Component, pageProps, err }) { const router = useRouter(); const [user, setUser] = useState(); diff --git a/src/utils/sentry.js b/src/utils/sentry.js index 2e6bd975d..3756d4a56 100644 --- a/src/utils/sentry.js +++ b/src/utils/sentry.js @@ -1,7 +1,7 @@ import * as Sentry from '@sentry/node'; import { RewriteFrames, CaptureConsole } from '@sentry/integrations'; -export const init = () => { +export const sentryInit = () => { if (process.env.NEXT_PUBLIC_SENTRY_DSN) { const integrations = []; if (