diff --git a/judgels-client/src/components/SubmissionDetails/Programming/SubmissionDetails.jsx b/judgels-client/src/components/SubmissionDetails/Programming/SubmissionDetails.jsx index d3849f80b..e368efc20 100644 --- a/judgels-client/src/components/SubmissionDetails/Programming/SubmissionDetails.jsx +++ b/judgels-client/src/components/SubmissionDetails/Programming/SubmissionDetails.jsx @@ -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; };