diff --git a/assets/js/components/wp-dashboard/WPDashboardWidgets.js b/assets/js/components/wp-dashboard/WPDashboardWidgets.js
index 3501bc78b23..843ab555230 100644
--- a/assets/js/components/wp-dashboard/WPDashboardWidgets.js
+++ b/assets/js/components/wp-dashboard/WPDashboardWidgets.js
@@ -119,12 +119,13 @@ export default function WPDashboardWidgets() {
}
) }
>
- { analyticsModuleActiveAndConnected && ! isGA4DashboardView && (
-
-
-
-
- ) }
+ { analyticsModuleActiveAndConnected &&
+ isGA4DashboardView === false && (
+
+
+
+
+ ) }
{ isGA4DashboardView && (
@@ -142,12 +143,13 @@ export default function WPDashboardWidgets() {
) }
- { analyticsModuleActiveAndConnected && ! isGA4DashboardView && (
-
-
-
-
- ) }
+ { analyticsModuleActiveAndConnected &&
+ isGA4DashboardView === false && (
+
+
+
+
+ ) }
{ isGA4DashboardView && (
diff --git a/assets/js/modules/search-console/components/common/AnalyticsStats.js b/assets/js/modules/search-console/components/common/AnalyticsStats.js
index 38dd22a9fec..b54fe838192 100644
--- a/assets/js/modules/search-console/components/common/AnalyticsStats.js
+++ b/assets/js/modules/search-console/components/common/AnalyticsStats.js
@@ -146,7 +146,7 @@ export default function AnalyticsStats( props ) {
];
}
- if ( ! isGA4DashboardView ) {
+ if ( isGA4DashboardView === false ) {
dateMarkers = [
{
date: UA_CUTOFF_DATE,