From 55841e648c1e860cb4663ec0a923353340d62fdb Mon Sep 17 00:00:00 2001 From: john681611 Date: Thu, 5 Oct 2023 15:19:38 +0100 Subject: [PATCH] GA make strong status <=2 --- application/frontend/src/pages/GapAnalysis/GapAnalysis.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/frontend/src/pages/GapAnalysis/GapAnalysis.tsx b/application/frontend/src/pages/GapAnalysis/GapAnalysis.tsx index a8878a162..a22b01164 100644 --- a/application/frontend/src/pages/GapAnalysis/GapAnalysis.tsx +++ b/application/frontend/src/pages/GapAnalysis/GapAnalysis.tsx @@ -50,14 +50,14 @@ function useQuery() { const GetStrength = (score) => { if (score == 0) return 'Direct'; - if (score < 5) return 'Strong'; + if (score <= 2) return 'Strong'; if (score >= 20) return 'Weak'; return 'Average'; }; const GetStrengthColor = (score) => { if (score === 0) return 'darkgreen'; - if (score < 5) return '#93C54B'; + if (score <= 2) return '#93C54B'; if (score >= 20) return 'Red'; return 'Orange'; };