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(
205205 errorMessage === "password too short"
206206 ) {
207207 if ( maxLenthPassword === Infinity ) {
208- return `Password must be greater than ${ minLenthPassword } characters` ;
208+ return `Password must be greater than ${ minLenthPassword . toString ( ) } characters` ;
209209 }
210- return `Password must be between ${ minLenthPassword } and ${ maxLenthPassword } characters` ;
210+ return `Password must be between ${ minLenthPassword . toString ( ) } and ${ maxLenthPassword . toString ( ) } characters` ;
211211 }
212212 return errorMessage ?? defaultErrorMsg [ index ] ;
213213}
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ function validateTextarea(
5959 : defaultErrorMsg [ index ] ;
6060
6161 if ( errorMessage === "This textarea is too big" ) {
62- return `Textarea cannot exceed ${ maxTextAreaLength } characters` ;
62+ return `Textarea cannot exceed ${ maxTextAreaLength . toString ( ) } characters` ;
6363 }
6464 return errorMessage ?? defaultErrorMsg [ index ] ;
6565 }
Original file line number Diff line number Diff line change @@ -193,7 +193,7 @@ function getErrorMessage(
193193 errorMessage === "username too short" ||
194194 errorMessage === "This username is too long"
195195 ) {
196- return `Username must be between ${ minLenthUsername } and ${ maxLenthUsername } characters` ;
196+ return `Username must be between ${ minLenthUsername . toString ( ) } and ${ maxLenthUsername . toString ( ) } characters` ;
197197 }
198198 return errorMessage ?? defaultErrorMsg [ index ] ;
199199}
You can’t perform that action at this time.
0 commit comments