Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
elielijah321 committed Apr 15, 2024
1 parent 505829c commit e211b21
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public async Task<IActionResult> 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)
{
Expand Down

0 comments on commit e211b21

Please sign in to comment.