Skip to content

Commit

Permalink
prettier pls
Browse files Browse the repository at this point in the history
  • Loading branch information
huntabyte committed Aug 28, 2024
1 parent f8e86a3 commit 33b039a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@
language: z.enum(languages.map((lang) => lang.value) as [Language, ...Language[]]),
dob: z
.string()
.datetime({ message: ""})
.datetime({ message: "" })
// we're setting it optional so the user can clear the date and we don't run into
// type issues, but we refine it to make sure it's not undefined
.optional()
.refine((date) => date !== '', "Please select a valid date.")
.refine((date) => date !== "", "Please select a valid date."),
});
export type AccountFormSchema = typeof accountFormSchema;
Expand Down

0 comments on commit 33b039a

Please sign in to comment.