Commit f70a327
committed
Fix Stimulus validation: show all field errors, not just first one
Changed 'else if' to 'if' so both Author and Text validation errors
display when both fields are empty. Removed unreachable else block.
Fixes 4 failing Stimulus/Turbo RSpec tests.1 parent fac506d commit f70a327
1 file changed
Lines changed: 2 additions & 4 deletions
| 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