Просмотр исходного кода

Fixed env var to pipe error boundary errors to sentry

jnfrati 4 лет назад
Родитель
Сommit
c7952ffe96
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      dashboard/src/shared/PorterErrorBoundary.tsx

+ 1 - 1
dashboard/src/shared/PorterErrorBoundary.tsx

@@ -16,7 +16,7 @@ const PorterErrorBoundary: React.FC<PorterErrorBoundaryProps> = ({
   children,
   children,
 }) => {
 }) => {
   const handleError = (error: Error, info: { componentStack: string }) => {
   const handleError = (error: Error, info: { componentStack: string }) => {
-    if (process.env.SENTRY_ENABLED) {
+    if (process.env.ENABLE_SENTRY) {
       Sentry.captureException(error, (scope) => {
       Sentry.captureException(error, (scope) => {
         scope.setTags({
         scope.setTags({
           error_boundary_location: errorBoundaryLocation,
           error_boundary_location: errorBoundaryLocation,