Commit ddb012e
fix: show success message on bug report submission
The form showed an error even when the GitHub issue was created
successfully, because onSuccess checked response.data?.state === 'open'
which didn't match the actual API response shape. Now the form resets
and shows success on any successful API call, with a fallback message
when the issue URL isn't available in the response.
Closes #1431
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 363519b commit ddb012e
1 file changed
Lines changed: 10 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
| 22 | + | |
| 23 | + | |
27 | 24 | | |
28 | 25 | | |
29 | 26 | | |
| |||
62 | 59 | | |
63 | 60 | | |
64 | 61 | | |
65 | | - | |
| 62 | + | |
66 | 63 | | |
67 | | - | |
68 | | - | |
69 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
| |||
0 commit comments