From 3eac042ba547af2883a9e2e4fe7c2af4c4a4a6c0 Mon Sep 17 00:00:00 2001 From: Eckerman Date: Mon, 13 Jan 2025 15:12:20 -0800 Subject: [PATCH] Adds string cast on strip course number formatting --- backend/src/components/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/components/utils.js b/backend/src/components/utils.js index f6845b42..fdb45912 100644 --- a/backend/src/components/utils.js +++ b/backend/src/components/utils.js @@ -323,7 +323,7 @@ function formatDate(date) { function stripNumberFormattingNumberOfCourses(value) { if (!value) return '0000'; - return value.replace('.', ''); + return String(value).replace('.', ''); } function formatNumberOfCourses(value) {