fix(client-side): change story content field name in yup schema

This commit is contained in:
parent 739cfb5eff
commit 1cd16a4ecc
Signed by: tablet
GPG Key ID: 924A5F6AF051E87C

@ -26,7 +26,7 @@ export const cs = yup.object<FormChapter>().shape({
}), }),
hidden: yup.boolean().oneOf([true, false]), hidden: yup.boolean().oneOf([true, false]),
pot: yup.string().oneOf(["pasteOrType", "upload"]).required("Story content is required!"), pot: yup.string().oneOf(["pasteOrType", "upload"]).required("Story content is required!"),
storytext: yup.string().when("pot", ([pot], schema) => { content: yup.string().when("pot", ([pot], schema) => {
return pot === "pasteOrType" return pot === "pasteOrType"
? schema ? schema
.test("numWords", "Story must be at least 50 words", (value: any, context) => { .test("numWords", "Story must be at least 50 words", (value: any, context) => {