Skip to content

Commit

Permalink
fix: make create project expiresAt null instead of empty string when …
Browse files Browse the repository at this point in the history
…ongoing is selected (#939)
  • Loading branch information
jfrader committed Jun 20, 2023
1 parent c8c701f commit 83bd9fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const ProjectFundraisingDeadline = ({

const handleOngoingSelect = () => {
setSelectedDate(null)
setValue('expiresAt', '', { shouldDirty: true })
setValue('expiresAt', null, { shouldDirty: true })
}

return (
Expand Down
2 changes: 1 addition & 1 deletion src/pages/projectCreate/hooks/useProjectForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export const useProjectForm = ({ isEdit, project }: UseProjectFormProps) => {
thumbnailImage: project.thumbnailImage || '',
shortDescription: project.shortDescription,
description: project.description,
expiresAt: project.expiresAt,
expiresAt: project.expiresAt || null,
email: user.email || '',
}
}
Expand Down

0 comments on commit 83bd9fe

Please sign in to comment.