Skip to content

Commit

Permalink
minor UI updates
Browse files Browse the repository at this point in the history
Signed-off-by: Amardeepsingh Siglani <[email protected]>
  • Loading branch information
amsiglan committed Sep 7, 2023
1 parent 2e94054 commit 3f9a0f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ export class Correlations extends React.Component<CorrelationsProps, Correlation
/>
<EuiSpacer />
<EuiTitle size="xs">
<p>Correlated Findings()</p>
<p>Correlated Findings ({findingCardsData.correlatedFindings.length})</p>
</EuiTitle>
<EuiText color="subdued" size="xs">
Higher correlation score indicated stronger correlation.
Expand Down
2 changes: 1 addition & 1 deletion public/store/CorrelationsStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ export class CorrelationsStore implements ICorrelationsStore {
const correlatedFindings = response.response.findings.map((f) => {
return {
...allFindings[f.finding],
correlationScore: f.score.toExponential(2),
correlationScore: f.score < 0.01 ? '0.01' : f.score.toFixed(2),
};
});
return {
Expand Down

0 comments on commit 3f9a0f0

Please sign in to comment.