fix(frontend): remove invalid json parsing on shift signup
- Backend `/signup` endpoint returns 200 OK with an empty body (`TypedResults.Ok()`), causing `res.json()` to throw 'Unexpected end of JSON input'. Removed the `res.json()` return. - Added Suspense boundary in login page to fix `useSearchParams` build error.
This commit is contained in:
@@ -111,7 +111,6 @@ export function useSignUpShift() {
|
||||
method: 'POST',
|
||||
});
|
||||
if (!res.ok) throw new Error('Failed to sign up');
|
||||
return res.json();
|
||||
},
|
||||
onSuccess: () => {
|
||||
queryClient.invalidateQueries({ queryKey: ['shifts', activeClubId] });
|
||||
|
||||
Reference in New Issue
Block a user