diff --git a/README.md b/README.md index 1e06f1d..79207ac 100644 --- a/README.md +++ b/README.md @@ -47,8 +47,9 @@ type FormSchema = z.infer; const conditions: FieldConditions = { // Show "Other Caterer" if "Other" option is selected otherCaterer: getValues => getValues("caterer") === "Other", - // Show "Wine" options for guests over 21. # stands in for "current" index - ["guests.#.wine"]: getValues => getValues("guests.#.age") === "21+", + // Show "Wine" options for guests over 21 + // Note: "#" stands in for "current" index + ["guests.#.wine"]: getValues => getValues("guests.#.age") >= 21, }; export function Form() {