Skip to content

Commit

Permalink
Urgent fix for team bookings (calcom#2352)
Browse files Browse the repository at this point in the history
  • Loading branch information
zomars authored Apr 1, 2022
1 parent 2d05532 commit f2436d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/web/lib/hooks/useSlots.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ type getFilteredTimesProps = {

export const getFilteredTimes = (props: getFilteredTimesProps) => {
const { times, busy, eventLength, beforeBufferTime, afterBufferTime } = props;
const finalizationTime = times[times.length - 1].add(eventLength, "minutes");
const finalizationTime = times[times.length - 1]?.add(eventLength, "minutes");
// Check for conflicts
for (let i = times.length - 1; i >= 0; i -= 1) {
// const totalSlotLength = eventLength + beforeBufferTime + afterBufferTime;
Expand Down

0 comments on commit f2436d2

Please sign in to comment.