Skip to content

Commit

Permalink
fix: force room names to string
Browse files Browse the repository at this point in the history
  • Loading branch information
SachsenspieltCoding committed Jul 30, 2024
1 parent 82d39d7 commit 13228f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/parser/plannedLesson.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ export class PlannedLessonParser implements IndiwareParser<PlannedLesson> {
if (typeof input == 'string' || typeof input == 'number') {
return {
changed: false,
value: input.toString() || null,
value: input ? `${input}` : null,
};
} else {
return {
changed: true,
value: input['#text'] || null,
value: input['#text'] ? `${input['#text']}` : null,
};
}
}
Expand Down

0 comments on commit 13228f3

Please sign in to comment.