From 3f9a0f078f3112cfd86d35a71f0e81c434902ad3 Mon Sep 17 00:00:00 2001 From: Amardeepsingh Siglani Date: Thu, 7 Sep 2023 12:03:35 -0700 Subject: [PATCH] minor UI updates Signed-off-by: Amardeepsingh Siglani --- public/pages/Correlations/containers/CorrelationsContainer.tsx | 2 +- public/store/CorrelationsStore.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public/pages/Correlations/containers/CorrelationsContainer.tsx b/public/pages/Correlations/containers/CorrelationsContainer.tsx index 7fd1f5b55..ae9603898 100644 --- a/public/pages/Correlations/containers/CorrelationsContainer.tsx +++ b/public/pages/Correlations/containers/CorrelationsContainer.tsx @@ -469,7 +469,7 @@ export class Correlations extends React.Component -

Correlated Findings()

+

Correlated Findings ({findingCardsData.correlatedFindings.length})

Higher correlation score indicated stronger correlation. diff --git a/public/store/CorrelationsStore.ts b/public/store/CorrelationsStore.ts index f19e5402d..ba2a53240 100644 --- a/public/store/CorrelationsStore.ts +++ b/public/store/CorrelationsStore.ts @@ -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 {