AOSSIE-Org / AOSSIE-Org/DebateAI

Unsafe JSON Parsing Leads to entire application will crash (White Screen of Death).

Đang mở
#300 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
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á.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.