AOSSIE-Org / AOSSIE-Org/DebateAI

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

Aperta
#300 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
TypeScript
Stelle
84
Fork
198
Merge medio
2g 19h
PR unite (30g)
30

Descrizione

**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

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.