AOSSIE-Org / AOSSIE-Org/DebateAI
Unsafe JSON Parsing Leads to entire application will crash (White Screen of Death).
Đang mở
- Ngôn ngữ chính
- TypeScript
- Star
- 84
- Fork
- 198
- Merge trung bình
- 2 ngày 19 giờ
- Pull request đã merge (30 ngày)
- 30
Mô tả
**Location**: `frontend/src/Pages/DebateRoom.tsx `
- Issue: JSON.parse(savedState) is used on data from localStorage without a try-catch block.
- Fix: Wrap JSON.parse in a try-catch block and fallback to default state if parsing fails.
**Why: If local storage data is corrupted or the schema changes, the entire application will crash (White Screen of Death).
fix this issue**
@bhavik-mangla Please checkout this solution #299
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.