Skip to content

Commit

Permalink
Fix ioi wrong verdicts in frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
kunyavskiy committed Dec 16, 2023
1 parent 2b4c33c commit 3a6779b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const getIOIScoreText = (difference) => {
const IOIVerdictLabel = ({ runResult: { wrongVerdict, difference }, ...props }) => {
const [diffText, diffColor] = getIOIScoreText(difference);
return <>
{wrongVerdict !== undefined && <VerdictLabel text={wrongVerdict ?? "??"} color={c.VERDICT_NOK} align="center" {...props}/>}
{wrongVerdict !== undefined && <VerdictLabel text={wrongVerdict.shortName ?? "??"} color={c.VERDICT_NOK} align="center" {...props}/>}
{wrongVerdict === undefined && <VerdictLabel text={diffText ?? "??"} color={diffColor} align="center" {...props}/>}
</>;
};
Expand Down

0 comments on commit 3a6779b

Please sign in to comment.