From e211b2185b42a908b8915a378dc7b3350a3366c8 Mon Sep 17 00:00:00 2001 From: Elijah Aremu <45821029+elielijah321@users.noreply.github.com> Date: Mon, 15 Apr 2024 11:40:46 +0100 Subject: [PATCH] bug fix --- .../Dfe.PrepareConversions/Pages/NewProject/Summary.cshtml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dfe.PrepareConversions/Dfe.PrepareConversions/Pages/NewProject/Summary.cshtml.cs b/Dfe.PrepareConversions/Dfe.PrepareConversions/Pages/NewProject/Summary.cshtml.cs index a569d5d7a..1859bc5ee 100644 --- a/Dfe.PrepareConversions/Dfe.PrepareConversions/Pages/NewProject/Summary.cshtml.cs +++ b/Dfe.PrepareConversions/Dfe.PrepareConversions/Pages/NewProject/Summary.cshtml.cs @@ -78,7 +78,7 @@ public async Task OnPostAsync(string urn, string ukprn, string ha await _academyConversionProjectRepository.CreateFormAMatProject(CreateProjectMapper.MapFormAMatToDto(establishment, trust, hasSchoolApplied, hasPreferredTrust)); } - bool _isFormAMAT = isFormAMat.ToLower().Equals("yes"); + bool _isFormAMAT = !string.IsNullOrEmpty(isFormAMat) && isFormAMat.ToLower().Equals("yes"); if (_isFormAMAT && proposedTrustName == null) {