We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a8f206 commit 28653ceCopy full SHA for 28653ce
projects/plugins/protect/src/js/routes/scan/index.jsx
@@ -35,8 +35,8 @@ const ScanPage = () => {
35
currentScanStatus = 'active';
36
}
37
38
- const hasActiveThreats = status && status.threats.length;
39
- const hasHistory = history && history.threats.length;
+ const hasActiveThreats = status && !! status.threats.length;
+ const hasHistory = history && !! history.threats.length;
40
const showResults = hasActiveThreats || hasHistory;
41
42
// Track view for Protect admin page.
0 commit comments