diff --git a/apps/frontend/app/(client)/(code-editor)/_components/TestcasePanel/TestcasePanel.tsx b/apps/frontend/app/(client)/(code-editor)/_components/TestcasePanel/TestcasePanel.tsx index a1eae46c0..b0e32452c 100644 --- a/apps/frontend/app/(client)/(code-editor)/_components/TestcasePanel/TestcasePanel.tsx +++ b/apps/frontend/app/(client)/(code-editor)/_components/TestcasePanel/TestcasePanel.tsx @@ -201,11 +201,11 @@ function TestSummary({ const notAcceptedTestcases = data .map((testcase) => - testcase.result !== 'Accepted' + testcase.result !== 'Accepted' && testcase.result !== 'Judging' ? `${testcase.isUserTestcase ? 'User' : 'Sample'} #${testcase.id}` - : -1 + : undefined ) - .filter((index) => index !== -1) + .filter(Boolean) return (
- Wrong Testcase Number: - | -- {notAcceptedTestcases.join(', ')} - | -
+ Wrong Testcase Number: + | ++ {notAcceptedTestcases.length > 0 + ? notAcceptedTestcases.join(', ') + : '-'} + | +