fix: sucess page time (#10743)

Signed-off-by: Udit Takkar <udit.07814802719@cse.mait.ac.in>
Co-authored-by: Shivam Kalra <shivamkalra98@gmail.com>
This commit is contained in:
Udit Takkar
2023-08-16 13:35:31 +05:30
committed by GitHub
co-authored by Shivam Kalra
parent 5924bc0990
commit 56ba8c0a07
+2 -1
View File
@@ -113,7 +113,8 @@ export default function Success(props: SuccessProps) {
const attendeeTimeZone = props?.bookingInfo?.attendees.find(
(attendee) => attendee.email === email
)?.timeZone;
const tz = isSuccessBookingPage && attendeeTimeZone ? attendeeTimeZone : props.tz ? props.tz : timeZone();
const tz = props.tz ? props.tz : isSuccessBookingPage && attendeeTimeZone ? attendeeTimeZone : timeZone();
const location = props.bookingInfo.location as ReturnType<typeof getEventLocationValue>;