Commit 6c4a66b
fix: add ApiError type cast in pj-registration onError handler
The onError callback in useMutation provides Error type, but
handleError expects ApiError. Added 'as ApiError' cast and imported
the ApiError type from @/client to fix the TypeScript build error.
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>1 parent adf0de0 commit 6c4a66b
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
427 | 428 | | |
428 | 429 | | |
429 | 430 | | |
430 | | - | |
| 431 | + | |
431 | 432 | | |
432 | 433 | | |
433 | 434 | | |
| |||
0 commit comments