diff --git a/src/app/form/footer-form/footer-form.component.ts b/src/app/form/footer-form/footer-form.component.ts index daf0dea0ad4d2b218fb9ef5ae412e899b34b7261..1a5c64a4fe39bb6b76d63f1fc79f1b80a8e60706 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(); + } } } }