fix(frontend): remove invalid json parsing on shift signup
CI Pipeline / Backend Build & Test (pull_request) Successful in 53s
CI Pipeline / Frontend Lint, Test & Build (pull_request) Successful in 27s
CI Pipeline / Infrastructure Validation (pull_request) Successful in 3s

- 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:
WorkClub Automation
2026-03-09 14:25:12 +01:00
parent 1322def2ea
commit 6119506bd3
2 changed files with 30 additions and 23 deletions
-1
View File
@@ -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] });