Skip to content

Commit

Permalink
Fix deleting fields by submitting
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanLieckens committed Nov 29, 2024
1 parent 64298bf commit 72fa4ba
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -544,13 +544,10 @@ private async Task ExecuteConfirmationStep(ApplicationFormModel model)
{
model.NextStep = ApplicationStep.Confirmation;
}
else if (model.IsNavigation.HasValue && !model.IsNavigation.Value && model.UnderstandsReviewConsent && model is { UnderstandsProgramAgreement: true, IsComplete: true })
else if (model.IsNavigation.HasValue && !model.IsNavigation.Value && model.UnderstandsReviewConsent && model is { UnderstandsProgramAgreement: true, IsComplete: true, CurrentApplication: not null })
{
Application updateApplication = new(model.CurrentApplication!.Id)
{
Status = ApplicationStatus.Submitted
};
Response<Application> applicationResponse = await Client.UpdateApplicationAsync(updateApplication);
model.CurrentApplication.Status = ApplicationStatus.Submitted;
Response<Application> applicationResponse = await Client.UpdateApplicationAsync(model.CurrentApplication);
if (applicationResponse is { StatusCode: HttpStatusCode.OK, Result: not null })
{
model.CurrentApplication = applicationResponse.Result;
Expand Down

0 comments on commit 72fa4ba

Please sign in to comment.