fix: address final review issues - promise handling, error scoping, controlled inputs, SortHeader

This commit is contained in:
2026-05-16 21:30:00 +02:00
parent 2c0d639c32
commit ae45071973
4 changed files with 24 additions and 15 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ export default function TradingSettings({ settings, onSave, saveError }: Trading
clearTimeout(saveTimersRef.current.get(key)!);
}
const timer = setTimeout(() => {
onSave(key, value);
onSave(key, value).catch((e) => console.error(`Failed to save ${key}:`, e));
saveTimersRef.current.delete(key);
}, 300);
saveTimersRef.current.set(key, timer);