Skip to content

Commit

Permalink
fix(rules): replace Min length with Max length errorText
Browse files Browse the repository at this point in the history
  • Loading branch information
mere1y committed Jul 21, 2023
1 parent 62eba59 commit f4c39fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shared/rules/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const rules = {
name: 'maxLength',
validator: (value: string | T[]) => ({
isValid: value.length <= max,
errorText: `Min length is ${max}`,
errorText: `Max length is ${max}`,
}),
}),
minValue: (min: number): Rule<number> => ({
Expand Down

0 comments on commit f4c39fd

Please sign in to comment.