Skip to content

Commit e3185d5

Browse files
thortolizruff
authored andcommitted
fixed bug where grading editor could not open (#2888)
1 parent ceaf256 commit e3185d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pages/academy/grading/subcomponents/GradingWorkspace.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,12 +308,12 @@ const GradingWorkspace: React.FC<Props> = props => {
308308
xpAdjustment={grading!.answers[questionId].grade.xpAdjustment}
309309
maxXp={grading!.answers[questionId].question.maxXp}
310310
studentNames={
311-
grading![questionId].student.name
311+
grading!.answers[questionId].student.name
312312
? [grading!.answers[questionId].student.name]
313313
: grading!.answers[questionId].team!.map(member => member.name)
314314
}
315315
studentUsernames={
316-
grading![questionId].student.username
316+
grading!.answers[questionId].student.username
317317
? [grading!.answers[questionId].student.username]
318318
: grading!.answers[questionId].team!.map(member => member.username)
319319
}

0 commit comments

Comments
 (0)