fix empty functions

This commit is contained in:
Jason Laster
2025-03-12 14:45:07 -04:00
parent f1f225af6b
commit 36abf17081
3 changed files with 8 additions and 2 deletions

View File

@@ -112,7 +112,9 @@ export const LoadProblemButton: React.FC<LoadProblemButtonProps> = ({ className,
type="text"
webkitdirectory=""
directory=""
onChange={(_e) => {}}
onChange={(_e) => {
/* Input change handled by onKeyDown */
}}
onKeyDown={(e) => {
if (e.key === 'Enter') {
handleSubmit(e as any);

View File

@@ -71,7 +71,10 @@ export function createAsyncSuspenseValue<T>(getValue: () => Promise<T>) {
return;
}
load().catch(() => {});
load().catch((error) => {
// Errors are already handled by the load method, just swallow them here
console.error('Preload error:', error);
});
},
};

View File

@@ -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);
}