diff --git a/app/components/chat/LoadProblemButton.tsx b/app/components/chat/LoadProblemButton.tsx index 29a88a05..38fa9d33 100644 --- a/app/components/chat/LoadProblemButton.tsx +++ b/app/components/chat/LoadProblemButton.tsx @@ -112,7 +112,9 @@ export const LoadProblemButton: React.FC = ({ className, type="text" webkitdirectory="" directory="" - onChange={(_e) => {}} + onChange={(_e) => { + /* Input change handled by onKeyDown */ + }} onKeyDown={(e) => { if (e.key === 'Enter') { handleSubmit(e as any); diff --git a/app/lib/asyncSuspenseValue.ts b/app/lib/asyncSuspenseValue.ts index bafdbe81..5c804d38 100644 --- a/app/lib/asyncSuspenseValue.ts +++ b/app/lib/asyncSuspenseValue.ts @@ -71,7 +71,10 @@ export function createAsyncSuspenseValue(getValue: () => Promise) { return; } - load().catch(() => {}); + load().catch((error) => { + // Errors are already handled by the load method, just swallow them here + console.error('Preload error:', error); + }); }, }; diff --git a/app/lib/replay/ReplayProtocolClient.ts b/app/lib/replay/ReplayProtocolClient.ts index 73a602a7..58253675 100644 --- a/app/lib/replay/ReplayProtocolClient.ts +++ b/app/lib/replay/ReplayProtocolClient.ts @@ -2,6 +2,7 @@ const replayWsServer = 'wss://dispatch.replay.io'; export function assert(condition: any, message: string = 'Assertion failed!'): asserts condition { if (!condition) { + // eslint-disable-next-line no-debugger debugger; throw new Error(message); }