Skip to content

Commit

Permalink
client: revert bad refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
fushar committed Aug 25, 2024
1 parent 0c9fd9d commit 9494620
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,10 @@ export function SubmissionDetails({
};

const renderScore = score => {
let formattedScore = score;

if (score.startsWith('*')) {
formattedScore = '✓' + score.substring(1);
return '✓' + score.substring(1);
} else if (score.startsWith('X')) {
formattedScore = '✕' + score.substring(1);
return score.substring(1);
}
return score;
};
Expand Down

0 comments on commit 9494620

Please sign in to comment.