From 07f38e1c9b7504db44c60723050963e4345ecdca Mon Sep 17 00:00:00 2001 From: Woojin Jung <44637040+jwoojin9@users.noreply.github.com> Date: Fri, 30 Aug 2024 15:32:52 +0900 Subject: [PATCH] fix(fe): remove link from participant score table (#2045) --- .../[id]/participant/[userId]/_components/SubmissionColumns.tsx | 2 +- apps/frontend/components/DataTableAdmin.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/frontend/app/admin/contest/[id]/participant/[userId]/_components/SubmissionColumns.tsx b/apps/frontend/app/admin/contest/[id]/participant/[userId]/_components/SubmissionColumns.tsx index b5bf96d1cc..e11763049a 100644 --- a/apps/frontend/app/admin/contest/[id]/participant/[userId]/_components/SubmissionColumns.tsx +++ b/apps/frontend/app/admin/contest/[id]/participant/[userId]/_components/SubmissionColumns.tsx @@ -68,7 +68,7 @@ export const submissionColumns: ColumnDef[] = [ header: () =>

IP

, cell: ({ row }) => (
- {row.getValue('ip')} + {row.getValue('ip') ?? 'Unknown'}
) } diff --git a/apps/frontend/components/DataTableAdmin.tsx b/apps/frontend/components/DataTableAdmin.tsx index 25c8da04b2..8024511d4c 100644 --- a/apps/frontend/components/DataTableAdmin.tsx +++ b/apps/frontend/components/DataTableAdmin.tsx @@ -443,7 +443,7 @@ export function DataTableAdmin({ } return `/contest/${pathname.split('/')[3]}/problem/${submission.problemId}/submission/${submission.id}` as Route } - if (pathname.includes('participant')) { + if (pathname.includes('participant') && enableProblemFilter) { const submission = row.original as { contestId: number problemId: number