Skip to content

Commit

Permalink
fixed handling for instruction length .env value
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewPhilbin committed Feb 19, 2024
1 parent c65dfe8 commit 32a6a39
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ import messages from '../Messages'
const validateMinLength = val => {
if(!val) {
// Handle undefined. null and empty string case and default to 150:
if(typeof val === 'string' && val.length === 0) return 150
if(typeof val === 'string' && val.length === 0) return 0
if(val === 0) return 0
return 150
}
// Handle 0 separately. Non-strict equals will be true for '0' string value:
Expand Down

0 comments on commit 32a6a39

Please sign in to comment.