Location: templates/add_area.html:481, 486
if(prefilledCommunityData?.lightningTips.length > 10){
if(prefilledCommunityData?.description.length > 10){
Problem: Hardcoded 10 with no explanation. Why 10?
Fix:
const MIN_FIELD_LENGTH = 10 // Minimum length to consider field as having real data
if(prefilledCommunityData?.lightningTips?.length > MIN_FIELD_LENGTH){
// ...
}
Note: These commit messages say "validate" but this isn't validation - it's just filtering. See next section for proper approach.
Location:
templates/add_area.html:481, 486Problem: Hardcoded
10with no explanation. Why 10?Fix:
Note: These commit messages say "validate" but this isn't validation - it's just filtering. See next section for proper approach.