diff --git a/components/party/PartyCreate.tsx b/components/party/PartyCreate.tsx index b6926b37b..96db85dc0 100644 --- a/components/party/PartyCreate.tsx +++ b/components/party/PartyCreate.tsx @@ -1,9 +1,9 @@ import { useRouter } from 'next/router'; import { FormEvent, useState } from 'react'; import { useSetRecoilState } from 'recoil'; -import { FaTimes } from 'react-icons/fa'; import { PartyCategory, PartyCreateForm } from 'types/partyTypes'; import { instance } from 'utils/axios'; +import { getFormattedDateToString } from 'utils/handleTime'; import { toastState } from 'utils/recoil/toast'; import { customTemplate, @@ -128,6 +128,9 @@ function DetailCustomization({ minute: 0, }); const [isSubmitting, setIsSubmitting] = useState(false); + const dueDate = getFormattedDateToString( + new Date(Date.now() + partyForm.openPeriod * 60 * 1000) + ); function handleOpenPeriod(period: { hour: number; minute: number }) { setOpenPeriod(period); @@ -258,7 +261,9 @@ function DetailCustomization({ ))}