fix: sucess page time (#10743)

Signed-off-by: Udit Takkar <[email protected]>
Co-authored-by: Shivam Kalra <[email protected]>
This commit is contained in:
Udit TakkarandShivam Kalra authored and GitHub committed 2023-08-16 13:35:31 +05:30
1 parent 5924bc0990
commit 56ba8c0a07
1 file changed
+2 -1
+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>;