rephrase error messages

This commit is contained in:
Maidul Islam
2024-08-08 18:15:13 -04:00
parent bb52e2beb4
commit 5176e70437
4 changed files with 4 additions and 4 deletions
@@ -93,7 +93,7 @@ const createTagSchema = z.object({
.trim()
.toLowerCase()
.refine((v) => slugify(v) === v, {
message: "Invalid slug. Should contain only characters, numbers and hyphen."
message: "Invalid slug. Slug can only contain alphanumeric characters and hyphens."
}),
color: z.string().trim()
});
@@ -11,7 +11,7 @@ import { UsePopUpState } from "@app/hooks/usePopUp";
const schema = z.object({
slug: z.string().refine((v) => slugify(v) === v, {
message: "Invalid slug. Should contain only characters, numbers and hyphen."
message: "Invalid slug. Slug can only contain alphanumeric characters and hyphens."
})
});