Skip to content

Commit e364763

Browse files
author
Auldrin Possa
committed
TD-5451-empty competency description check added in Supervise section.
1 parent 7be11c2 commit e364763

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

DigitalLearningSolutions.Web/Views/Supervisor/ReviewSelfAssessment.cshtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@
174174
</div>
175175
<div class="nhsuk-grid-column-full">
176176

177-
@if (competency.Description != null && !competency.AlwaysShowDescription)
177+
@if (!string.IsNullOrWhiteSpace(competency.Description) && !competency.AlwaysShowDescription)
178178
{
179179
<details class="nhsuk-details">
180180
<summary class="nhsuk-details__summary">
@@ -194,7 +194,7 @@
194194
<h2 class="nhsuk-u-margin-bottom-0 nhsuk-u-font-size-24">
195195
@competency.Name
196196
</h2>
197-
@if (competency.Description != null)
197+
@if (!string.IsNullOrWhiteSpace(competency.Description))
198198
{
199199
<p class="nhsuk-body-l">
200200
@(Html.Raw(competency.Description))

0 commit comments

Comments
 (0)