diff --git a/lib/client/storyFormSchema.ts b/lib/client/storyFormSchema.ts index 27dd209..309daa1 100644 --- a/lib/client/storyFormSchema.ts +++ b/lib/client/storyFormSchema.ts @@ -40,7 +40,7 @@ export const cs = yup.object().shape({ ? schema.oneOf( [true], "If your story contains adult content, you MUST restrict the ability to read it to logged-in users only. Failure to comply may result in a takedown.", - ) + ) : schema.oneOf([true, false]); }), hidden: yup.boolean().oneOf([true, false]), @@ -87,7 +87,7 @@ export const cs = yup.object().shape({ return reg.test(ext); }, ) */ - yup.mixed(); + yup.mixed(); } /* { is: "upload", then: ,