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 ( +
No stocks tracked yet. Visit the stocks page to add some.
@@ -109,12 +117,12 @@ export default function StockTable({ stocks, onNotesSave, saveError }: StockTabl| Notes | Last Decision | Last Job | -
|---|