Skip to content

Commit

Permalink
Fix : warning in submission table (#73)
Browse files Browse the repository at this point in the history
* Fix : Warning each child should have unique key in SubmissionTable

* Revert "Fix : Warning each child should have unique key in SubmissionTable"

This reverts commit 08bce57.

* Reapply "Fix : Warning each child should have unique key in SubmissionTable"

This reverts commit a3bf1f0.

* Fixed
  • Loading branch information
iharsh02 authored Aug 6, 2024
1 parent 1d8790a commit 3da1ace
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions apps/web/components/SubmissionTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,25 +83,25 @@ export function SubmissionTable({
</TableRow>
</TableHeader>
<TableBody>
{submissions.map((submission) => (
<TableRow>
<TableCell>{submission.id.substr(0, 8)}</TableCell>
<TableCell className={getColor(submission.status)}>
{getIcon(submission.status)}
</TableCell>
<TableCell>
{
submission.testcases.filter(
(testcase) => testcase.status === "AC",
).length
}
/{submission.testcases.length}
</TableCell>
<TableCell>{submission.time}</TableCell>
<TableCell>{submission.memory}</TableCell>
</TableRow>
))}
</TableBody>
{submissions.map((submission) => (
<TableRow key={submission.id}>
<TableCell>{submission.id.substr(0, 8)}</TableCell>
<TableCell className={getColor(submission.status)}>
{getIcon(submission.status)}
</TableCell>
<TableCell>
{
submission.testcases.filter(
(testcase) => testcase.status === "AC",
).length
}
/{submission.testcases.length}
</TableCell>
<TableCell>{submission.time}</TableCell>
<TableCell>{submission.memory}</TableCell>
</TableRow>
))}
</TableBody>
</Table>
</div>
);
Expand Down

0 comments on commit 3da1ace

Please sign in to comment.