Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

Fix date removal #217

Luke Vellaa1d86dbb4b0b
diff --git a/src/utils/date-time-utils.ts b/src/utils/date-time-utils.ts
index 54df98a42..625f08794 100644
--- a/src/utils/date-time-utils.ts
+++ b/src/utils/date-time-utils.ts
@@ -133,10 +133,10 @@ export const removeAllOptionsForDay = (
date: Date,
) => {
return options.filter((option) => {
- const optionDate = new Date(
+ return !dayjs(date).isSame(
option.type === "date" ? option.date : option.start,
+ "day",
);
- return !dayjs(date).isSame(optionDate, "day");
});
};