mirror of
https://github.com/lukevella/rallly.git
synced 2025-08-06 09:59:00 +02:00
🚑 Fix deleting a date option removes votes for other options
This commit is contained in:
parent
6ef2b1ce5d
commit
c8fd9d3d50
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ import { useUpdatePollMutation } from "./mutations";
|
||||||
const PollOptionsForm = React.lazy(() => import("../forms/poll-options-form"));
|
const PollOptionsForm = React.lazy(() => import("../forms/poll-options-form"));
|
||||||
|
|
||||||
const convertOptionToString = (option: { start: Date; duration: number }) => {
|
const convertOptionToString = (option: { start: Date; duration: number }) => {
|
||||||
const start = dayjs(option.start);
|
const start = dayjs(option.start).utc();
|
||||||
return option.duration === 0
|
return option.duration === 0
|
||||||
? start.format("YYYY-MM-DD")
|
? start.format("YYYY-MM-DD")
|
||||||
: `${start.format("YYYY-MM-DDTHH:mm:ss")}/${start
|
: `${start.format("YYYY-MM-DDTHH:mm:ss")}/${start
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue