Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
🐛 Preserve poll time zone when re-adding options after clearing all (#1218) (#2655)
Luke Vellaf76bf6efd340
diff --git a/apps/web/src/features/poll/components/forms/poll-options-form/month-calendar/month-calendar.tsx b/apps/web/src/features/poll/components/forms/poll-options-form/month-calendar/month-calendar.tsxindex c51c63348..a45577db5 100644--- a/apps/web/src/features/poll/components/forms/poll-options-form/month-calendar/month-calendar.tsx+++ b/apps/web/src/features/poll/components/forms/poll-options-form/month-calendar/month-calendar.tsx@@ -279,7 +279,8 @@ const MonthCalendar: React.FunctionComponent<DateTimePickerProps> = ({if (options.length === 0 &&- newOption.type === "timeSlot"+ newOption.type === "timeSlot" &&+ !form.getValues("timeZone")) {form.setValue("timeZone", getBrowserTimeZone());}