Skip to content

Commit c59156d

Browse files
committed
fix: ui
1 parent 2e50acf commit c59156d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

apps/client/src/components/Submissions.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ const Submissions: React.FC<Props> = ({ id }) => {
2626
queryKey: ['submissions'],
2727
queryFn: () => api.submissions.findAll(id),
2828
select(data) {
29-
return data.reverse();
29+
data.reverse();
30+
return data;
3031
},
3132
});
3233

@@ -56,7 +57,9 @@ const Submissions: React.FC<Props> = ({ id }) => {
5657
>
5758
<TableCell
5859
className={cn(
59-
submission.status === 'WA' ? 'text-red-600' : 'text-green-500',
60+
submission.status === 'WrongAnswer'
61+
? 'text-red-600'
62+
: 'text-green-500',
6063
)}
6164
>
6265
{submission.status}

0 commit comments

Comments
 (0)