diff --git a/DigitalLearningSolutions.Web/Views/MyAccount/EditDetails.cshtml b/DigitalLearningSolutions.Web/Views/MyAccount/EditDetails.cshtml index 8801b08cbb..53a279dc6f 100644 --- a/DigitalLearningSolutions.Web/Views/MyAccount/EditDetails.cshtml +++ b/DigitalLearningSolutions.Web/Views/MyAccount/EditDetails.cshtml @@ -32,15 +32,8 @@ nameof(Model.Answer5), nameof(Model.Answer6), }; - var professionalRegistrationNumberError = ViewData.ModelState["ProfessionalRegistrationNumber"]?.Errors.FirstOrDefault(); - if (professionalRegistrationNumberError == null) - { + - } - if (professionalRegistrationNumberError != null) - { - - } }

Edit details

diff --git a/DigitalLearningSolutions.Web/Views/Register/LearnerInformation.cshtml b/DigitalLearningSolutions.Web/Views/Register/LearnerInformation.cshtml index 7fcfd9c3d8..7847a655c6 100644 --- a/DigitalLearningSolutions.Web/Views/Register/LearnerInformation.cshtml +++ b/DigitalLearningSolutions.Web/Views/Register/LearnerInformation.cshtml @@ -11,28 +11,18 @@
@if (errorHasOccurred) - { - - var professionalRegistrationNumberError = ViewData.ModelState["ProfessionalRegistrationNumber"]?.Errors.FirstOrDefault(); - if (professionalRegistrationNumberError == null) - { - - } - if (professionalRegistrationNumberError != null) - { - - - } - } + { + + }

Learner information

diff --git a/DigitalLearningSolutions.Web/Views/Shared/_ProfessionalRegistrationNumberError.cshtml b/DigitalLearningSolutions.Web/Views/Shared/_ProfessionalRegistrationNumberError.cshtml deleted file mode 100644 index 2c501f385a..0000000000 --- a/DigitalLearningSolutions.Web/Views/Shared/_ProfessionalRegistrationNumberError.cshtml +++ /dev/null @@ -1,17 +0,0 @@ -@model string -@{ - -} - diff --git a/DigitalLearningSolutions.Web/Views/TrackingSystem/Delegates/EditDelegate/Index.cshtml b/DigitalLearningSolutions.Web/Views/TrackingSystem/Delegates/EditDelegate/Index.cshtml index 99fabb74ef..438175861c 100644 --- a/DigitalLearningSolutions.Web/Views/TrackingSystem/Delegates/EditDelegate/Index.cshtml +++ b/DigitalLearningSolutions.Web/Views/TrackingSystem/Delegates/EditDelegate/Index.cshtml @@ -34,7 +34,19 @@ } if (professionalRegistrationNumberError != null) { - + } }