Anonymous
-
2026-06-26
- assigned_to: BilgeGates
Originally created by: BilgeGates
Originally owned by: BilgeGates
void syncStorage.set(PIECE_STYLE_KEY, JSON.stringify(valid)) fires a promise whose rejection is not handled. The surrounding try/catch only catches synchronous errors — async rejections from syncStorage.set() surface as unhandled promise rejections in the browser console and are never surfaced to the user.
File: src/shared/hooks/useBoardPieceSet.ts
Rejections from syncStorage.set() are caught and either logged or surfaced gracefully.
Unhandled promise rejection in the console; the error is silently swallowed.
The void operator discards the promise. Either await with proper error handling or a .catch() chain is needed.
Any browser / OS.