diff --git a/src/app/form/form.component.ts b/src/app/form/form.component.ts index 6051a2538c1b7e3bcceff3235b74581070fcf14d..e0367bf0ad43c2a081586f7ec2f201091e6bd8da 100644 --- a/src/app/form/form.component.ts +++ b/src/app/form/form.component.ts @@ -153,8 +153,12 @@ export class FormComponent implements OnInit { } public updateFormOnLogin() { - //TODO -> switch to signed mode, update user data, validate/delete previous field, skip 2 pages - this.isAccountMode = true; + this.profileService.getProfile().then((user: User) => { + this.profile = user; + }); + this.router.navigateByUrl('create-structure'); + this.pagesValidation[PageTypeEnum.accountInfo] = { valid: true }; + this.pagesValidation[PageTypeEnum.accountCredentials] = { valid: true }; this.currentPage = PageTypeEnum.structureNameAndAddress; }