From 279991562bc6e4988a8a1b50b0c70a9349c16668 Mon Sep 17 00:00:00 2001 From: Adrian Rollett <101649+acrollet@users.noreply.github.com> Date: Wed, 4 Dec 2024 12:44:42 -0700 Subject: [PATCH] Fix environment check (#33337) --- src/platform/monitoring/web-vitals.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/monitoring/web-vitals.js b/src/platform/monitoring/web-vitals.js index a5af8a71ddca..ced3a4f8262a 100644 --- a/src/platform/monitoring/web-vitals.js +++ b/src/platform/monitoring/web-vitals.js @@ -23,7 +23,7 @@ const recordWebVitalsEvent = event => { const trackWebVitals = // Exclude production for now. - !environment.isProduction && + !environment.isProduction() && // Exclude cypress containers and localhost from tracking web vitals. environment.BASE_URL.indexOf('localhost') < 0;