Commit 408eded
Fix validation logic in Stimulus comments controller
Fixed bug where validation errors for both empty fields were not being
displayed correctly. Changed else-if to if so both Author and Text
validation errors can be added when both fields are empty.
This fixes the failing Stimulus/Turbo tests.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 53e3945 commit 408eded
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