Make title optional
This commit is contained in:
parent
3846034a44
commit
04197c01b0
|
@ -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(),
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue