Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
🐛 Remove unecessary duration value (#2165)
Luke Vellad24f2036dc04
diff --git a/apps/web/src/components/forms/poll-options-form/month-calendar/month-calendar.tsx b/apps/web/src/components/forms/poll-options-form/month-calendar/month-calendar.tsxindex e35dcf4fc..53a2db4fd 100644--- a/apps/web/src/components/forms/poll-options-form/month-calendar/month-calendar.tsx+++ b/apps/web/src/components/forms/poll-options-form/month-calendar/month-calendar.tsx@@ -153,7 +153,6 @@ const MonthCalendar: React.FunctionComponent<DateTimePickerProps> = ({: {type: "timeSlot",start: formatDateWithoutTz(selectedDate),- duration,end: formatDateWithoutTz(dayjs(selectedDate).add(duration, "minutes")@@ -365,7 +364,6 @@ const MonthCalendar: React.FunctionComponent<DateTimePickerProps> = ({{type: "timeSlot",start: startTime,- duration,end: formatDateWithoutTz(dayjs(new Date(startTime)).add(duration, "minutes")@@ -403,7 +401,6 @@ const MonthCalendar: React.FunctionComponent<DateTimePickerProps> = ({startTime: option.start.substring(option.start.indexOf("T"),),- duration: option.duration,endTime: option.end.substring(option.end.indexOf("T"),),@@ -419,7 +416,6 @@ const MonthCalendar: React.FunctionComponent<DateTimePickerProps> = ({newOptions.push({type: "timeSlot",start: start,- duration,end: dayjs(start).add(duration, "minutes").format("YYYY-MM-DDTHH:mm"),diff --git a/apps/web/src/components/forms/poll-options-form/types.ts b/apps/web/src/components/forms/poll-options-form/types.tsindex ac30f593b..8f8b7892c 100644--- a/apps/web/src/components/forms/poll-options-form/types.ts+++ b/apps/web/src/components/forms/poll-options-form/types.ts@@ -6,7 +6,6 @@ export type DateOption = {export type TimeOption = {type: "timeSlot";start: string;- duration: number;end: string;};diff --git a/apps/web/src/components/forms/poll-options-form/week-calendar.tsx b/apps/web/src/components/forms/poll-options-form/week-calendar.tsxindex 591d4f6b5..25dc2a646 100644--- a/apps/web/src/components/forms/poll-options-form/week-calendar.tsx+++ b/apps/web/src/components/forms/poll-options-form/week-calendar.tsx@@ -159,7 +159,6 @@ const WeekCalendar: React.FunctionComponent<DateTimePickerProps> = ({const newEvent: DateTimeOption = {type: "timeSlot",start: formatDateWithoutTz(startDate),- duration: dayjs(endDate).diff(endDate, "minutes"),end: formatDateWithoutTz(endDate),};