Skip to content

Commit 76c998d

Browse files
committed
Fix: bug mentor evaluate
1 parent 34673ec commit 76c998d

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

frontend/src/pages/Mentor/Barem/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const MentorBaremPage = () => {
3434
},
3535
enabled: !!params.id,
3636
});
37-
const isLeader = params?.candidateId === candidates?.leader.id;
37+
const isLeader = params?.candidateId === candidates?.leader?.id;
3838
// console.log("isLeader", params?.candidateId, isLeader);
3939

4040
const [candidateActive, setcandidateActive] = useState<CandidateType | undefined>(undefined);

frontend/src/pages/Mentor/Team.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ const Team = ({ team }: { team: TeamType }) => {
3535
<div className="flex flex-wrap items-center gap-2">
3636
<ShowTopic urlPdf={team.topic.filePath} name={team.topic.title} />
3737
<ChoiceLeader team={team} />
38+
<ShowTopic urlPdf={team.topic.filePath} name={team.topic.title} />
3839

3940
{/* <Link to={`/mentor/team/${team.id}`}>
4041
<Button

0 commit comments

Comments
 (0)