Skip to content

Commit 316357f

Browse files
committed
TD-4405-Displays the CommentsPrompt label if it exists
1 parent b116823 commit 316357f

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

DigitalLearningSolutions.Web/Views/Supervisor/ReviewCompetencySelfAsessment.cshtml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -122,15 +122,11 @@
122122
}
123123
@if (Model.Competency.AssessmentQuestions.First().IncludeComments)
124124
{
125-
var promptText = string.IsNullOrEmpty(Model.Competency.AssessmentQuestions.First()?.CommentsPrompt) ?
125+
var commentsLabel = string.IsNullOrEmpty(Model.Competency.AssessmentQuestions.First()?.CommentsPrompt) ?
126126
Model.DelegateSelfAssessment.ReviewerCommentsLabel : Model.Competency.AssessmentQuestions.First()?.CommentsPrompt;
127127
<div class="nhsuk-summary-list__row">
128128
<dt class="nhsuk-summary-list__key">
129-
@(((Model.Competency.AssessmentQuestions.First().SignedOff == true && Model.Competency.AssessmentQuestions.First().Verified.HasValue)
130-
|| (Model.Competency.AssessmentQuestions.First().ResultId != null && Model.Competency.AssessmentQuestions.First().Verified == null && Model.Competency.AssessmentQuestions.First().Requested != null && Model.Competency.AssessmentQuestions.First().UserIsVerifier == false)
131-
|| (Model.Competency.AssessmentQuestions.First().Verified == null && Model.Competency.AssessmentQuestions.First().Requested != null)
132-
&& (!String.IsNullOrEmpty(Model.DelegateSelfAssessment.ReviewerCommentsLabel)))
133-
? promptText : "Comments")
129+
@(!String.IsNullOrEmpty(commentsLabel) ? commentsLabel : "Comments")
134130
</dt>
135131
<dd class="nhsuk-summary-list__value">
136132
@Html.Raw(Model.Competency.AssessmentQuestions.First().SupportingComments)

0 commit comments

Comments
 (0)