Explorar o código

Fixed env var to pipe error boundary errors to sentry

jnfrati %!s(int64=4) %!d(string=hai) anos
pai
achega
c7952ffe96
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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,