فهرست منبع

Merge pull request #1226 from porter-dev/fix/misspelling-on-enable-sentry-env-var

Fix env variable name to pipe errors to sentry
abelanger5 4 سال پیش
والد
کامیت
b3ac7691ca
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,