From 7fdcdde41e84368d915aaca56fc311af8ce27277 Mon Sep 17 00:00:00 2001 From: Avisha Sodhi <38086281+SodhiA1@users.noreply.github.com> Date: Mon, 6 Jan 2025 11:40:03 -0800 Subject: [PATCH] Small fix --- 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 4d1fe76f..0056c44d 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?.numberOfCoursesDec) { - payload.numberOfCourses = stripNumberFormattingNumberOfCourses(payload.numberOfCoursesDec); + if (payload?.numberOfCourses) { + payload.numberOfCourses = stripNumberFormattingNumberOfCourses(payload.numberOfCourses); } const data = await postData(token, payload, config.get('sdc:schoolCollectionStudentURL') + '/false', req.session?.correlationID); if(studentLock) {