Skip to content

Commit

Permalink
Fix: Hide EPSS scores columns in compliance view
Browse files Browse the repository at this point in the history
  • Loading branch information
a-h-abdelsalam committed Dec 10, 2024
1 parent 2816e1e commit 03255fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/web/pages/results/row.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ const Row = ({
</TableData>
<TableData>{entity.port}</TableData>
{
gmp.settings.enableEPSS &&
gmp.settings.enableEPSS && !audit &&
<>
<TableData>
{isNumber(epssScore) ? epssScore.toFixed(5) : _("N/A")}
Expand Down
4 changes: 2 additions & 2 deletions src/web/pages/results/table.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ const Header = ({
title={_('Location')}
/>
{
gmp.settings.enableEPSS &&
gmp.settings.enableEPSS && !audit &&
<TableHead colSpan="2">
{_("EPSS")}
</TableHead>
Expand Down Expand Up @@ -148,7 +148,7 @@ const Header = ({
title={_('Name')}
/>
{
gmp.settings.enableEPSS &&
gmp.settings.enableEPSS && !audit &&
<>
<TableHead
width="3%"
Expand Down

0 comments on commit 03255fe

Please sign in to comment.