File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -205,9 +205,9 @@ function getErrorMessage(
205
205
errorMessage === "password too short"
206
206
) {
207
207
if ( maxLenthPassword === Infinity ) {
208
- return `Password must be greater than ${ minLenthPassword } characters` ;
208
+ return `Password must be greater than ${ minLenthPassword . toString ( ) } characters` ;
209
209
}
210
- return `Password must be between ${ minLenthPassword } and ${ maxLenthPassword } characters` ;
210
+ return `Password must be between ${ minLenthPassword . toString ( ) } and ${ maxLenthPassword . toString ( ) } characters` ;
211
211
}
212
212
return errorMessage ?? defaultErrorMsg [ index ] ;
213
213
}
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ function validateTextarea(
59
59
: defaultErrorMsg [ index ] ;
60
60
61
61
if ( errorMessage === "This textarea is too big" ) {
62
- return `Textarea cannot exceed ${ maxTextAreaLength } characters` ;
62
+ return `Textarea cannot exceed ${ maxTextAreaLength . toString ( ) } characters` ;
63
63
}
64
64
return errorMessage ?? defaultErrorMsg [ index ] ;
65
65
}
Original file line number Diff line number Diff line change @@ -193,7 +193,7 @@ function getErrorMessage(
193
193
errorMessage === "username too short" ||
194
194
errorMessage === "This username is too long"
195
195
) {
196
- return `Username must be between ${ minLenthUsername } and ${ maxLenthUsername } characters` ;
196
+ return `Username must be between ${ minLenthUsername . toString ( ) } and ${ maxLenthUsername . toString ( ) } characters` ;
197
197
}
198
198
return errorMessage ?? defaultErrorMsg [ index ] ;
199
199
}
You can’t perform that action at this time.
0 commit comments