Skip to content

Commit

Permalink
Fix adding peer reviews from dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
iPegii committed Jul 22, 2021
1 parent c320538 commit 82633c8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion packages/quizzes-dashboard/store/editor/quiz/quizReducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,9 @@ export const quizReducer = createReducer<

.handleAction(createdNewPeerReview, (state, action) => {
return produce(state, draftState => {
draftState[action.payload.quizId].peerReviews.push(action.payload.newId)
draftState[action.payload.quizId].peerReviewCollections.push(
action.payload.newId,
)
})
})

Expand Down
2 changes: 1 addition & 1 deletion packages/quizzes-dashboard/types/NormalizedQuiz.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export interface NormalizedQuiz {
grantPointsPolicy: string
autoReject: boolean
items: string[]
peerReviews: any[]
peerReviewCollections: any[]
course: string
title: string
body: string
Expand Down

0 comments on commit 82633c8

Please sign in to comment.