From 15afa627965c3749fec741e3dca4bf6d322043c5 Mon Sep 17 00:00:00 2001 From: Avisha Sodhi <38086281+SodhiA1@users.noreply.github.com> Date: Mon, 6 Jan 2025 11:46:37 -0800 Subject: [PATCH] revert. --- backend/src/components/sdc.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/components/sdc.js b/backend/src/components/sdc.js index 0056c44d..4d1fe76f 100644 --- a/backend/src/components/sdc.js +++ b/backend/src/components/sdc.js @@ -334,8 +334,8 @@ async function updateAndValidateSdcSchoolCollectionStudent(req, res) { payload.sdcSchoolCollectionStudentValidationIssues = null; payload.sdcSchoolCollectionStudentEnrolledPrograms = null; - if (payload?.numberOfCourses) { - payload.numberOfCourses = stripNumberFormattingNumberOfCourses(payload.numberOfCourses); + if (payload?.numberOfCoursesDec) { + payload.numberOfCourses = stripNumberFormattingNumberOfCourses(payload.numberOfCoursesDec); } const data = await postData(token, payload, config.get('sdc:schoolCollectionStudentURL') + '/false', req.session?.correlationID); if(studentLock) {