From a5fea4e979781a55b4e4b668dd964f2c6dc461ea Mon Sep 17 00:00:00 2001 From: anfbermudezme Date: Tue, 23 Jul 2024 07:59:59 +0200 Subject: [PATCH] chore: add auto_enroll field when handleEnrollment is called. --- src/features/Classes/EnrollStudent/index.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/features/Classes/EnrollStudent/index.jsx b/src/features/Classes/EnrollStudent/index.jsx index 764288a..4265136 100644 --- a/src/features/Classes/EnrollStudent/index.jsx +++ b/src/features/Classes/EnrollStudent/index.jsx @@ -43,6 +43,7 @@ const EnrollStudent = ({ isOpen, onClose, queryClassId }) => { formData.delete('studentEmail'); formData.append('identifiers', studentEmail); formData.append('action', 'enroll'); + formData.append('auto_enroll', 'true'); try { setLoading(true);