Commit 8a8453c
Fix validation logic to show both error messages when both fields are blank
Changed the if/else-if structure to two independent if checks so that both
"Author: can't be blank" and "Text: can't be blank" messages are displayed
when both form fields are empty.
Before: Only one error message would show due to else-if chain
After: Both error messages show when both fields are blank
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 7e92502 commit 8a8453c
1 file changed
+2
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
| 25 | + | |
| 26 | + | |
29 | 27 | | |
30 | 28 | | |
31 | 29 | | |
| |||
0 commit comments