Skip to content

Commit

Permalink
fix: correct minor typo in README (#1582)
Browse files Browse the repository at this point in the history
  • Loading branch information
brandondurham authored Feb 10, 2022
1 parent ceca307 commit facea53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1036,8 +1036,8 @@ let schema = object({
isBig: boolean(),
count: number().when(['isBig', 'isSpecial'], {
is: true, // alternatively: (isBig, isSpecial) => isBig && isSpecial
then: (schema) => schema..min(5),
otherwise: (schema) => schema..min(0),
then: (schema) => schema.min(5),
otherwise: (schema) => schema.min(0),
}),
});

Expand Down

0 comments on commit facea53

Please sign in to comment.