When the API returns an empty response body, the app crashes with an unhandled TypeError. Add proper null/undefined checks and show a user-friendly error message instead of crashing.
Acceptance Criteria:
- API calls handle null/undefined responses gracefully
- User sees a friendly error toast instead of a crash
- Add at least one unit test for the error handling path
When the API returns an empty response body, the app crashes with an unhandled TypeError. Add proper null/undefined checks and show a user-friendly error message instead of crashing.
Acceptance Criteria: