From 7dc4a55319b622aebbb6465fc4833e125d83b4f3 Mon Sep 17 00:00:00 2001 From: Syed Ali Shahbaz <52925846+alishaz-polymath@users.noreply.github.com> Date: Tue, 12 Oct 2021 13:59:12 +0530 Subject: [PATCH] Bugfix CAL-566 guest emails missing (#905) * removed empty dep from useCallback of bookingHandler * added guestEmails as the dep instead of no dep Co-authored-by: Bailey Pumfleet --- components/booking/pages/BookingPage.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/booking/pages/BookingPage.tsx b/components/booking/pages/BookingPage.tsx index ca1c044d6b..70a9f8a477 100644 --- a/components/booking/pages/BookingPage.tsx +++ b/components/booking/pages/BookingPage.tsx @@ -181,7 +181,7 @@ const BookingPage = (props: BookingPageProps) => { book(); }; - const bookingHandler = useCallback(_bookingHandler, []); + const bookingHandler = useCallback(_bookingHandler, [guestEmails]); return (
@@ -254,7 +254,7 @@ const BookingPage = (props: BookingPageProps) => {
-