Skip to content

Commit

Permalink
GA make strong status <=2
Browse files Browse the repository at this point in the history
  • Loading branch information
john681611 committed Oct 5, 2023
1 parent 922c9c5 commit 55841e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/frontend/src/pages/GapAnalysis/GapAnalysis.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
};
Expand Down

0 comments on commit 55841e6

Please sign in to comment.