From eee375ff56fe155120441a31ea36d0c1b206e96b Mon Sep 17 00:00:00 2001 From: Henry Winkel Date: Sat, 16 May 2026 14:19:45 +0200 Subject: [PATCH] MostActiveStocks: send background flag when triggering analyze\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- app/components/MostActiveStocks.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/MostActiveStocks.tsx b/app/components/MostActiveStocks.tsx index 7f5fb79..365c9cb 100644 --- a/app/components/MostActiveStocks.tsx +++ b/app/components/MostActiveStocks.tsx @@ -62,7 +62,7 @@ export default function MostActiveStocks() { throw new Error(data?.error || "Failed to save stock"); } // trigger analysis in background (non-blocking) - fetch(`/api/analyze`, { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ ticker: symbol }) }).catch(() => {}); + fetch(`/api/analyze`, { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ ticker: symbol, background: true }) }).catch(() => {}); setSaved((p) => ({ ...p, [symbol]: true })); } catch (err) { console.error(err);