diff --git a/app/components/LlmSettings.tsx b/app/components/LlmSettings.tsx index 621759f..6db3330 100644 --- a/app/components/LlmSettings.tsx +++ b/app/components/LlmSettings.tsx @@ -41,7 +41,7 @@ export default function LlmSettings({ settings, onSave, saveError }: LlmSettings setTemperature(value); if (tempTimerRef.current) clearTimeout(tempTimerRef.current); tempTimerRef.current = setTimeout(() => { - onSave("llm.temperature", value); + onSave("llm.temperature", value).catch((e) => console.error("Failed to save temperature:", e)); }, 300); }; diff --git a/app/components/StockTable.tsx b/app/components/StockTable.tsx index 90ed748..c1796fa 100644 --- a/app/components/StockTable.tsx +++ b/app/components/StockTable.tsx @@ -19,6 +19,24 @@ interface StockTableProps { type SortField = "ticker" | "createdAt" | "updatedAt"; type SortDirection = "asc" | "desc"; +function SortHeader({ field, children, sortField, sortDirection, onSort }: { + field: SortField; + children: ReactNode; + sortField: SortField; + sortDirection: SortDirection; + onSort: (field: SortField) => void; +}) { + return ( + onSort(field)} + > + {children} + {sortField === field && {sortDirection === "asc" ? "↑" : "↓"}} + + ); +} + export default function StockTable({ stocks, onNotesSave, saveError }: StockTableProps) { const [search, setSearch] = useState(""); const [sortField, setSortField] = useState("ticker"); @@ -72,16 +90,6 @@ export default function StockTable({ stocks, onNotesSave, saveError }: StockTabl } }; - const SortHeader = ({ field, children }: { field: SortField; children: ReactNode }) => ( - handleSort(field)} - > - {children} - {sortField === field && {sortDirection === "asc" ? "↑" : "↓"}} - - ); - if (stocks.length === 0) { return (

No stocks tracked yet. Visit the stocks page to add some.

@@ -109,12 +117,12 @@ export default function StockTable({ stocks, onNotesSave, saveError }: StockTabl - Ticker + Ticker - Created - Updated + Created + Updated diff --git a/app/components/SystemSettings.tsx b/app/components/SystemSettings.tsx index 5593a4a..eb3a2d6 100644 --- a/app/components/SystemSettings.tsx +++ b/app/components/SystemSettings.tsx @@ -65,6 +65,7 @@ export default function SystemSettings({ settings, alpacaMode, onSave, saveError
{setting.key}
Notes Last Decision Last Job