From fe7b66bba044a6e39041cc8cf92af4da3a8f9e82 Mon Sep 17 00:00:00 2001 From: ErpingS Date: Thu, 13 Nov 2025 20:20:09 -0800 Subject: [PATCH 1/2] fix peer judging project link --- src/components/Judging/Admin/Table.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/Judging/Admin/Table.jsx b/src/components/Judging/Admin/Table.jsx index 526f9639..0bd05a63 100644 --- a/src/components/Judging/Admin/Table.jsx +++ b/src/components/Judging/Admin/Table.jsx @@ -3,6 +3,7 @@ import styled from 'styled-components' import { JUDGING_RUBRIC } from '../../../utility/Constants' import { Button } from '../../Input' import { A } from '../../Typography' +import { useHackathon } from '../../../utility/HackathonProvider' const StyledTable = styled.table` width: 100%; @@ -88,8 +89,9 @@ const ProjectGradeTitles = [ ] export const ProjectGradeTable = ({ data, onDisqualify }) => { + const { activeHackathon } = useHackathon() const formattedData = data?.map(row => { - const projectLink = `/projects/${row.id}` + const projectLink = `/app/${activeHackathon}/projects/${row.id}` return [ row.title, projectLink, From b37e7f025ee7a8731796e8f8a00173847ee9fcd1 Mon Sep 17 00:00:00 2001 From: ErpingS Date: Sun, 16 Nov 2025 09:21:06 -0800 Subject: [PATCH 2/2] fix project link view in admin judging --- src/components/Judging/Admin/Table.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Judging/Admin/Table.jsx b/src/components/Judging/Admin/Table.jsx index 0bd05a63..b270060a 100644 --- a/src/components/Judging/Admin/Table.jsx +++ b/src/components/Judging/Admin/Table.jsx @@ -130,8 +130,9 @@ const RemoveButton = ({ onRemove }) => { } export const GradeTable = ({ data, onRemove }) => { + const { activeHackathon } = useHackathon() const formattedData = data?.map(row => { - const projectLink = `/projects/${row.id}` + const projectLink = `/app/${activeHackathon}/projects/${row.id}` return [ row.title, projectLink,