Skip to content

Scheduling infrastructure for absolutely everyone.

fix: Next/previous buttons on week view move 8 instead of 7 days (#10742)

Moon Patel2a9e0615759e
diff --git a/packages/features/bookings/Booker/components/Header.tsx b/packages/features/bookings/Booker/components/Header.tsx
index b6d38722e8a..f7613a470f4 100644
--- a/packages/features/bookings/Booker/components/Header.tsx
+++ b/packages/features/bookings/Booker/components/Header.tsx
@@ -91,7 +91,7 @@ export function Header({
color="minimal"
StartIcon={ChevronLeft}
aria-label="Previous Day"
- onClick={() => addToSelectedDate(-extraDays - 1)}
+ onClick={() => addToSelectedDate(-extraDays)}
/>
<Button
className="group rtl:mr-1 rtl:rotate-180"
@@ -99,7 +99,7 @@ export function Header({
color="minimal"
StartIcon={ChevronRight}
aria-label="Next Day"
- onClick={() => addToSelectedDate(extraDays + 1)}
+ onClick={() => addToSelectedDate(extraDays)}
/>
{selectedDateMin3DaysDifference && (
<Button