Skip to content

Commit

Permalink
Remove redundant string parse
Browse files Browse the repository at this point in the history
  • Loading branch information
alexwkleung committed Jan 1, 2025
1 parent 7d36fe5 commit aae1d88
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/data/schema/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ const schema: z.ZodObject<ZObjectSchemaType> = z.object({
return parsed.isValid() && parsed.format(DATE_FORMAT.default) === date;
},
{
message:
'Date format is invalid. The default date format is: ' + DATE_FORMAT.default.toString(),
message: 'Date format is invalid. The default date format is: ' + DATE_FORMAT.default,
}
),
status: statusSchema,
Expand Down

0 comments on commit aae1d88

Please sign in to comment.