Skip to content

Commit

Permalink
Fix continuous feedback chip not being show on cu accordion level
Browse files Browse the repository at this point in the history
  • Loading branch information
Keskimaki committed Oct 31, 2023
1 parent 6c16cc4 commit d2f5dcb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client/pages/MyTeaching/CourseUnitAccordion.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ const getChip = (courseRealisation, code) => {
const isEnded = feedbackTargetIsEnded(feedbackTarget)
const isOpen = feedbackTargetIsOpen(feedbackTarget)
const isOld = feedbackTargetIsOld(feedbackTarget)
const isOngoing = feedbackTargetCourseIsOngoing({ courseRealisation }) && !isOpen
const { id: feedbackTargetId, continuousFeedbackEnabled } = feedbackTarget || {}
const { id: feedbackTargetId, continuousFeedbackEnabled, opensAt } = feedbackTarget || {}
const isOngoing = feedbackTargetCourseIsOngoing({ opensAt, courseRealisation }) && !isOpen

if (isOpen || (isOngoing && continuousFeedbackEnabled) || (feedbackCount > 0 && isEnded) || feedbackResponseGiven) {
return (
Expand Down

0 comments on commit d2f5dcb

Please sign in to comment.