Skip to content

Commit

Permalink
Adds string cast on strip course number formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
eckermania committed Jan 13, 2025
1 parent c5e1c15 commit 3eac042
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/components/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ function formatDate(date) {

function stripNumberFormattingNumberOfCourses(value) {
if (!value) return '0000';
return value.replace('.', '');
return String(value).replace('.', '');
}

function formatNumberOfCourses(value) {
Expand Down

0 comments on commit 3eac042

Please sign in to comment.