Skip to content

Scheduling infrastructure for absolutely everyone.

disable confirm button when recurring mutation is loading (#2950)

Carina Wollendorferb4f3680876a0
diff --git a/apps/web/components/booking/pages/BookingPage.tsx b/apps/web/components/booking/pages/BookingPage.tsx
index b1682bc509d..13d0d1bee08 100644
--- a/apps/web/components/booking/pages/BookingPage.tsx
+++ b/apps/web/components/booking/pages/BookingPage.tsx
@@ -815,7 +815,7 @@ const BookingPage = ({
<Button
type="submit"
data-testid={rescheduleUid ? "confirm-reschedule-button" : "confirm-book-button"}
- loading={mutation.isLoading}>
+ loading={mutation.isLoading || recurringMutation.isLoading}>
{rescheduleUid ? t("reschedule") : t("confirm")}
</Button>
<Button color="secondary" type="button" onClick={() => router.back()}>