diff --git a/js/components/report/feedback-panel-for-student.js b/js/components/report/feedback-panel-for-student.js index b17bf679..6c5a89e8 100644 --- a/js/components/report/feedback-panel-for-student.js +++ b/js/components/report/feedback-panel-for-student.js @@ -35,12 +35,9 @@ export default class FeedbackPanelForStudent extends PureComponent { render() { const { textFeedback, score, rubric, rubricFeedback, hasBeenReviewed } = this.props; + const showRubric = rubric && rubricFeedback && !rubric.hideRubricFromStudentsInStudentReport; - if (rubric && rubric.hideRubricFromStudentsInStudentReport) { - return null; - } - - const hasFeedback = textFeedback || score || rubricFeedback; + const hasFeedback = textFeedback || score || showRubric; const showFeedback = (hasFeedback && hasBeenReviewed); let feedbackDiv = @@ -53,7 +50,7 @@ export default class FeedbackPanelForStudent extends PureComponent {
Teacher Feedback:
{ - rubric && rubricFeedback && + showRubric &&