Skip to content

Commit

Permalink
Merge branch 'master' into TEAMMATES#12279-mobile-display-course-card…
Browse files Browse the repository at this point in the history
…-header
  • Loading branch information
Mex7180 authored Sep 15, 2023
2 parents 601aedc + ed3d5f0 commit fe9ee97
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ export class QuestionResponsePanelComponent {
next: (sessionResults: SessionResults) => {
const responses: QuestionOutput = sessionResults.questions[0];
if (responses) {
question.hasResponse = true;
question.feedbackQuestion = responses.feedbackQuestion;
question.allResponses = responses.allResponses;
question.otherResponses = responses.otherResponses;
Expand All @@ -104,7 +105,7 @@ export class QuestionResponsePanelComponent {
question.responsesToSelf = responses.responsesToSelf;
question.hasResponseButNotVisibleForPreview = responses.hasResponseButNotVisibleForPreview;
question.hasCommentNotVisibleForPreview = responses.hasCommentNotVisibleForPreview;
} else {
} else {
question.hasResponse = false;
if (question.errorMessage) {
this.statusMessageService.showSuccessToast('Question '
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ describe('SessionResultPageComponent', () => {
otherResponses: [],
isLoading: false,
isLoaded: false,
hasResponse: true,
hasResponse: false,
hasResponseButNotVisibleForPreview: false,
hasCommentNotVisibleForPreview: false,
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ export class SessionResultPageComponent implements OnInit {
otherResponses: [],
isLoading: false,
isLoaded: false,
hasResponse: true,
hasResponse: false,
hasResponseButNotVisibleForPreview: false,
hasCommentNotVisibleForPreview: false,
});
Expand Down

0 comments on commit fe9ee97

Please sign in to comment.