Skip to content

Commit 33eafdb

Browse files
committed
chore: update validation message
1 parent 26182ee commit 33eafdb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/app/src/components/shared/item/ItemCardForm.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ const schema = computed(() => z.object({
6666
prefix: z.preprocess(
6767
val => val === '' ? null : val,
6868
z.string()
69-
.regex(/^\d+$/, 'Prefix be a string containing only digits')
69+
.regex(/^\d+$/, 'Prefix must be a string containing only digits')
7070
.refine(
7171
(prefix: string | null | undefined) => {
7272
if (prefix === null || prefix === undefined) {
@@ -77,7 +77,7 @@ const schema = computed(() => z.object({
7777
7878
return Number.isInteger(num) && num >= 0
7979
},
80-
'Prefix must be a positive integer',
80+
'Prefix must be a non-negative integer',
8181
)
8282
.nullish(),
8383
),

0 commit comments

Comments
 (0)