Skip to content

Commit fd7a1c2

Browse files
committed
revert: use refine() instead of literal() to avoid boolean type error
1 parent 969fd77 commit fd7a1c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web-marketplace/src/components/organisms/AgreePurchaseForm/AgreePurchaseForm.schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export const agreePurchaseFormSchema = (retiring: boolean) =>
99
postalCode: z.string(),
1010
followProject: z.boolean(),
1111
subscribeNewsletter: z.boolean(),
12-
agreeErpa: z.literal(true),
12+
agreeErpa: z.boolean().refine(value => value),
1313
});
1414

1515
export type AgreePurchaseFormSchemaType = z.infer<

0 commit comments

Comments
 (0)