From 074e8b71c3d38d9ab71b541d17c8b3397c364fa2 Mon Sep 17 00:00:00 2001
From: Marlene Simondant <msimondant@grandlyon.com>
Date: Thu, 13 Apr 2023 14:57:57 +0200
Subject: [PATCH] fix(onboarding): freewifi screen is not validated when using
 prev/next buttons

---
 .../structure-form/structure-wifi/structure-wifi.component.ts   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/app/form/form-view/structure-form/structure-wifi/structure-wifi.component.ts b/src/app/form/form-view/structure-form/structure-wifi/structure-wifi.component.ts
index 088132a11..0222cb1c9 100644
--- a/src/app/form/form-view/structure-form/structure-wifi/structure-wifi.component.ts
+++ b/src/app/form/form-view/structure-form/structure-wifi/structure-wifi.component.ts
@@ -15,7 +15,7 @@ export class StructureWifiComponent implements OnInit {
 
   public formUtils = new formUtils();
   ngOnInit(): void {
-    if (this.isEditMode) this.validateForm.emit();
+    this.validateForm.emit();
   }
   public isInArray(formControlName: string, term: string): boolean {
     return this.formUtils.isInCategoryArray(term, formControlName, this.structureForm);
-- 
GitLab