From 6b1f3143b1005b301a58987ab1132d334e61e40b Mon Sep 17 00:00:00 2001
From: Etienne LOUPIAS <eloupias@grandlyon.com>
Date: Mon, 24 Oct 2022 15:40:54 +0200
Subject: [PATCH] fix issue 45

---
 src/app/form/form-view/form-view.component.ts | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/app/form/form-view/form-view.component.ts b/src/app/form/form-view/form-view.component.ts
index 3e5f7acea..194e4a2b9 100644
--- a/src/app/form/form-view/form-view.component.ts
+++ b/src/app/form/form-view/form-view.component.ts
@@ -486,6 +486,7 @@ export class FormViewComponent implements OnInit {
     const exitPages: stepType[] = [
       structureFormStep.noStructure,
       structureFormStep.structureCreationFinishedInfo,
+      structureFormStep.mailSentInfo,
       profileFormStep.profileJobSelection,
       personalOfferFormStep.personalOfferFinishedInfo,
     ];
@@ -496,7 +497,7 @@ export class FormViewComponent implements OnInit {
       this.isEditMode ||
       exitPages.includes(this.currentPage)
     ) {
-      return new Promise((resolve) => resolve(true));
+      return Promise.resolve(true);
     } else {
       return new Promise((resolve) => this.showModal(resolve));
     }
-- 
GitLab