Skip to content

Commit

Permalink
fix(fe): remove link from participant score table (#2045)
Browse files Browse the repository at this point in the history
  • Loading branch information
jwoojin9 authored Aug 30, 2024
1 parent 62482e3 commit 07f38e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export const submissionColumns: ColumnDef<UserSubmission>[] = [
header: () => <p className="font-mono text-sm">IP</p>,
cell: ({ row }) => (
<div className="whitespace-nowrap text-center text-xs">
{row.getValue('ip')}
{row.getValue('ip') ?? 'Unknown'}
</div>
)
}
Expand Down
2 changes: 1 addition & 1 deletion apps/frontend/components/DataTableAdmin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ export function DataTableAdmin<TData, TValue>({
}
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
Expand Down

0 comments on commit 07f38e1

Please sign in to comment.