diff --git a/judgels-client/src/components/SubmissionDetails/Programming/SubmissionDetails.jsx b/judgels-client/src/components/SubmissionDetails/Programming/SubmissionDetails.jsx index f07020aa0..69d161f79 100644 --- a/judgels-client/src/components/SubmissionDetails/Programming/SubmissionDetails.jsx +++ b/judgels-client/src/components/SubmissionDetails/Programming/SubmissionDetails.jsx @@ -91,6 +91,16 @@ export function SubmissionDetails({ ); }; + const renderScore = score => { + if (score.startsWith('*')) { + return '✓' + score.substring(1); + } + if (score.startsWith('X')) { + return '✕' + score.substring(1); + } + return score; + }; + const renderSubtaskResults = () => { if (!hasSubtasks) { return null; @@ -136,7 +146,7 @@ export function SubmissionDetails({