From f0726887d0bb112860f8d5e5e7ecbcf131f44225 Mon Sep 17 00:00:00 2001
From: Etienne Loupias <eloupias@grandlyon.com>
Date: Wed, 11 Dec 2024 15:04:01 +0100
Subject: [PATCH] =?UTF-8?q?retour=20ap=C3=A8rs=20cr=C3=A9ation=20personalO?=
 =?UTF-8?q?ffer?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/app/form/footer-form/footer-form.component.ts | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/src/app/form/footer-form/footer-form.component.ts b/src/app/form/footer-form/footer-form.component.ts
index daf0dea0a..1a5c64a4f 100644
--- a/src/app/form/footer-form/footer-form.component.ts
+++ b/src/app/form/footer-form/footer-form.component.ts
@@ -244,7 +244,11 @@ export class FooterFormComponent {
       this.currentForm === formType.personaloffer &&
       this.currentStep === personalOfferFormStep.personalOfferFinishedInfo
     ) {
-      return 'Voir mon compte';
+      if (this.isPersonalOfferProfile) {
+        return 'Retour à la structure';
+      } else {
+        return 'Voir mon compte';
+      }
     }
   }
 
@@ -260,7 +264,11 @@ export class FooterFormComponent {
       (this.currentForm === formType.personaloffer &&
         this.currentStep === personalOfferFormStep.personalOfferFinishedInfo)
     ) {
-      this.goToProfile();
+      if (this.isPersonalOfferProfile) {
+        history.back();
+      } else {
+        this.goToProfile();
+      }
     }
   }
 }
-- 
GitLab