Skip to content

Commit

Permalink
resolves #1
Browse files Browse the repository at this point in the history
  • Loading branch information
ali-ahnaf committed Sep 10, 2024
1 parent e0df7f8 commit 0f5cfc2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/calender/util/calender.util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ export function isRoomAvailable(busyTimes: BusyTimes[], startTime: Date, endTime

export function parseLocation(location: string) {
if (!location) {
return undefined;
return "N/A";
}

const parsedLocation = location.split(',');
return parsedLocation.length > 0 ? parsedLocation[0] : undefined;
return parsedLocation.length > 0 ? parsedLocation[0] : 'N/A';
}

0 comments on commit 0f5cfc2

Please sign in to comment.