Call setSelectedTimeZone as we don't want to refactor Scheduler (#1213)

Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
pull/1202/head^2
Alex van Andel 2021-11-25 17:03:37 +01:00 committed by GitHub
parent da2c825dad
commit 396355e350
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -909,8 +909,9 @@ const EventTypePage = (props: inferSSRProps<typeof getServerSideProps>) => {
dateOverrides: val.dateOverrides,
});
}}
setTimeZone={(val: string) => {
formMethods.setValue("scheduler.selectedTimezone", val);
setTimeZone={(timeZone) => {
formMethods.setValue("scheduler.selectedTimezone", timeZone);
setSelectedTimeZone(timeZone);
}}
timeZone={selectedTimeZone}
availability={availability.map((schedule) => ({