We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e50acf commit c59156dCopy full SHA for c59156d
apps/client/src/components/Submissions.tsx
@@ -26,7 +26,8 @@ const Submissions: React.FC<Props> = ({ id }) => {
26
queryKey: ['submissions'],
27
queryFn: () => api.submissions.findAll(id),
28
select(data) {
29
- return data.reverse();
+ data.reverse();
30
+ return data;
31
},
32
});
33
@@ -56,7 +57,9 @@ const Submissions: React.FC<Props> = ({ id }) => {
56
57
>
58
<TableCell
59
className={cn(
- submission.status === 'WA' ? 'text-red-600' : 'text-green-500',
60
+ submission.status === 'WrongAnswer'
61
+ ? 'text-red-600'
62
+ : 'text-green-500',
63
)}
64
65
{submission.status}
0 commit comments