Commit Graph

3 Commits

Author SHA1 Message Date
david 37eb1f8e21 fix: check response.ok before parsing JSON in fetch calls
Fix JSON parsing errors when server returns non-JSON responses:
- Check response.ok before calling response.json()
- Add fallback error messages using status text
- Apply fix to all fetch calls across 12 components

This prevents 'JSON.parse: unexpected character' errors when
server returns HTML error pages or other non-JSON responses.
2026-04-03 19:27:10 -07:00
david a7d94e9fee fix: add tournament update API endpoint and consolidate delete into main tournaments API 2026-03-30 22:17:44 -07:00
david 07804b5f8f feat: add site_admin role, casual match support, and tournament deletion 2026-03-30 21:49:43 -07:00