diff --git a/src/components/AdminPane/Manage/ManageChallenges/EditChallenge/Schemas/InstructionsSchema.js b/src/components/AdminPane/Manage/ManageChallenges/EditChallenge/Schemas/InstructionsSchema.js index 8d68476a0..9b6cd722e 100644 --- a/src/components/AdminPane/Manage/ManageChallenges/EditChallenge/Schemas/InstructionsSchema.js +++ b/src/components/AdminPane/Manage/ManageChallenges/EditChallenge/Schemas/InstructionsSchema.js @@ -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: