From 18fa4f9b88c8de515027398a3ad0d17196b226fe Mon Sep 17 00:00:00 2001 From: MuslemRahimi Date: Wed, 2 Apr 2025 09:33:39 +0200 Subject: [PATCH] bugfixing --- src/lib/components/FinancialTable.svelte | 2 ++ .../stocks/[tickerID]/financials/ratios/+page.svelte | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/lib/components/FinancialTable.svelte b/src/lib/components/FinancialTable.svelte index 9ad78c32..8f07e385 100644 --- a/src/lib/components/FinancialTable.svelte +++ b/src/lib/components/FinancialTable.svelte @@ -5,12 +5,14 @@ // Use a Set for fast margin lookup const marginKeys = new Set([ + /* "pretaxProfitMargin", "freeCashFlowMargin", "grossProfitMargin", "netProfitMargin", "operatingProfitMargin", "ebitdaMargin", + */ ]); // Precompute fields with an additional flag diff --git a/src/routes/stocks/[tickerID]/financials/ratios/+page.svelte b/src/routes/stocks/[tickerID]/financials/ratios/+page.svelte index 47c5d13c..6e04f8f5 100644 --- a/src/routes/stocks/[tickerID]/financials/ratios/+page.svelte +++ b/src/routes/stocks/[tickerID]/financials/ratios/+page.svelte @@ -98,17 +98,17 @@ }, { propertyName: "returnOnEquity", - label: "Return on Equity (ROE)", + label: "Return on Equity", text: `Return on equity (ROE) is a profitability metric that shows how efficient a company is at using its equity (or "net" assets) to generate profits. It is calculated by dividing the company's net income by the average shareholders' equity during the past 12 months.`, }, { propertyName: "returnOnAssets", - label: "Return on Assets (ROA)", + label: "Return on Assets", text: `Return on assets (ROA) is a metric that measures how much profit a company is able to generate using its assets. It is calculated by dividing net income by the average total assets for the past 12 months.`, }, { - propertyName: "returnOnCapitalEmployed", - label: "Return on Capital (ROIC)", + propertyName: "returnOnInvestedCapital", + label: "Return on Invested Capital", text: `Return on invested capital (ROIC) measures how effective a company is at investing its capital in order to increase profits. It is calculated by dividing the NOPAT (Net Operating Profit After Tax) by the invested capital.`, }, {