diff --git a/projects/plugins/protect/src/js/routes/scan/index.jsx b/projects/plugins/protect/src/js/routes/scan/index.jsx index c7c75e8cd0cf9..6ceb7083de0b3 100644 --- a/projects/plugins/protect/src/js/routes/scan/index.jsx +++ b/projects/plugins/protect/src/js/routes/scan/index.jsx @@ -35,8 +35,8 @@ const ScanPage = () => { currentScanStatus = 'active'; } - const hasActiveThreats = status && status.threats.length; - const hasHistory = history && history.threats.length; + const hasActiveThreats = status && !! status.threats.length; + const hasHistory = history && !! history.threats.length; const showResults = hasActiveThreats || hasHistory; // Track view for Protect admin page.