Skip to content

Commit

Permalink
prevent showing callout when slots are negative
Browse files Browse the repository at this point in the history
closes #10199;
  • Loading branch information
rithviknishad committed Jan 28, 2025
1 parent 99eb563 commit c367d6f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/Scheduling/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ export function getSlotsPerSession(
) {
const duration = getDurationInMinutes(startTime, endTime);
if (!duration) return null;
return Math.floor(duration / slotSizeInMinutes);
const result = Math.floor(duration / slotSizeInMinutes);
return result < 0 ? null : result;
}

export function getTokenDuration(
Expand Down

0 comments on commit c367d6f

Please sign in to comment.