diff --git a/Dfe.ManageFreeSchoolProjects/Dfe.ManageFreeSchoolProjects/Pages/Shared/_NumberInputCell.cshtml b/Dfe.ManageFreeSchoolProjects/Dfe.ManageFreeSchoolProjects/Pages/Shared/_NumberInputCell.cshtml index 4fa5d0274..f3dbcf1a4 100644 --- a/Dfe.ManageFreeSchoolProjects/Dfe.ManageFreeSchoolProjects/Pages/Shared/_NumberInputCell.cshtml +++ b/Dfe.ManageFreeSchoolProjects/Dfe.ManageFreeSchoolProjects/Pages/Shared/_NumberInputCell.cshtml @@ -2,16 +2,18 @@ @{ var showError = !string.IsNullOrWhiteSpace(Model.ErrorMessage); + var showSuffix = !string.IsNullOrWhiteSpace(Model.Suffix); + var showLabel = !string.IsNullOrWhiteSpace(Model.Label); } @{ - if(Model.Label.Length > 0) + if (showLabel) {
@Model.Label
} }
@{ - if (Model.Suffix.Length > 0) + if (showSuffix) {