Skip to content

Scheduling infrastructure for absolutely everyone.

fix: Bookings unconfirmed count not getting updated in left sidebar badge (#23886)

Anwar Sadath134f7e591ee7
diff --git a/apps/web/components/booking/BookingListItem.tsx b/apps/web/components/booking/BookingListItem.tsx
index 44079e90c49..54831045ecf 100644
--- a/apps/web/components/booking/BookingListItem.tsx
+++ b/apps/web/components/booking/BookingListItem.tsx
@@ -164,6 +164,7 @@ function BookingListItem(booking: BookingItemProps) {
showToast(t("booking_confirmation_success"), "success");
}
utils.viewer.bookings.invalidate();
+ utils.viewer.me.bookingUnconfirmedCount.invalidate();
},
onError: () => {
showToast(t("booking_confirmation_failed"), "error");