From 22ead126e6981abd2c47d2335c39cbb6948f0c8e Mon Sep 17 00:00:00 2001 From: Alejandro Visiedo Date: Fri, 3 May 2024 22:09:02 +0200 Subject: [PATCH] fix(HMS-4061): fix autoenrollment value When the domain is registered on the backend, it is created with autoenrollment disabled. When the verification happens on the frontend, the returned value is false, but we want to set by default for the UI enabled. This change is not effective until the user finish the wizard and click the Finish button, and at that time the PATCH /domains/:domain_id is sent and whatever decided the user (leave disabled, or enabled) is then set on the backend side. Signed-off-by: Alejandro Visiedo --- src/Routes/WizardPage/WizardPage.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Routes/WizardPage/WizardPage.tsx b/src/Routes/WizardPage/WizardPage.tsx index 49166ec..bf5e23c 100644 --- a/src/Routes/WizardPage/WizardPage.tsx +++ b/src/Routes/WizardPage/WizardPage.tsx @@ -237,6 +237,7 @@ const WizardPage = () => { } appContext?.wizard.setRegisteredStatus(value); if (value === 'completed' && data !== undefined) { + data.auto_enrollment_enabled = true; appContext?.wizard.setDomain(data); setCanJumpPage3(true); // Check whether initial values for user-configurable fields