mirror of
https://github.com/lukevella/rallly.git
synced 2025-04-29 10:16:32 +02:00
Fix date removal #217
This commit is contained in:
parent
cec3ef2549
commit
a1d86dbb4b
1 changed files with 2 additions and 2 deletions
|
@ -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");
|
||||
});
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue