Skip to content

Commit

Permalink
Comment pointing out consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
BryceStevenWilley committed Feb 6, 2024
1 parent 9826c94 commit 306bd90
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docassemble/ALToolbox/ThreePartsDate.py
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,8 @@
return date_input >= min_date;
}}, function alMinMessage (validity, field) {{
/** Returns the string of the invalidation message. */
/** Returns the string of the invalidation message, or blank string for
* safety and consistency with alMaxMessage. */
let min_attr = get_$original_date(field).attr('data-alMin') || "";
let min_date = new Date(min_attr.replace(/-/g, '/'));
let locale_long_date = min_date.toLocaleDateString(undefined, {{ day: '2-digit', month: 'long', year: 'numeric' }});
Expand Down

0 comments on commit 306bd90

Please sign in to comment.