Răsfoiți Sursa

Fixed env var to pipe error boundary errors to sentry

jnfrati 4 ani în urmă
părinte
comite
c7952ffe96
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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,