Преглед изворни кода

Fixed env var to pipe error boundary errors to sentry

jnfrati пре 4 година
родитељ
комит
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,
 }) => {
   const handleError = (error: Error, info: { componentStack: string }) => {
-    if (process.env.SENTRY_ENABLED) {
+    if (process.env.ENABLE_SENTRY) {
       Sentry.captureException(error, (scope) => {
         scope.setTags({
           error_boundary_location: errorBoundaryLocation,