Make title optional

This commit is contained in:
powermaker450 2024-08-19 01:00:27 -04:00
parent 3846034a44
commit 04197c01b0

View file

@ -11,7 +11,7 @@ export const reviewSchema = object({
(number) => (number! * 10) % 5 === 0,
)
.required(),
title: string().max(50).required(),
title: string().max(50).notRequired(),
content: string().max(2000).notRequired(),
});