diff --git a/src/routes/etf/[tickerID]/+page.svelte b/src/routes/etf/[tickerID]/+page.svelte index 1befcfb9..87db55f3 100644 --- a/src/routes/etf/[tickerID]/+page.svelte +++ b/src/routes/etf/[tickerID]/+page.svelte @@ -220,21 +220,21 @@ hour: "numeric", hour12: true, }); - return `${timeString.replace(/\s/g, " ")}`; + return `${timeString.replace(/\s/g, " ")}`; } else if (["1W", "1M"].includes(displayData)) { const timeString = date?.toLocaleDateString("en-US", { month: "short", day: "numeric", timeZone: "UTC", }); - return `${timeString}`; + return `${timeString}`; } else { const timeString = date?.toLocaleDateString("en-US", { year: "2-digit", month: "short", timeZone: "UTC", }); - return `${timeString}`; + return `${timeString}`; } }, }, @@ -750,7 +750,7 @@ >Bid {$wsBidPrice !== 0 && $wsBidPrice !== null ? $wsBidPrice : (data?.getStockQuote?.bid ?? "-")}Market Cap {abbreviateNumber(data?.getStockQuote?.marketCap)} @@ -774,7 +774,7 @@ >AUM {stockDeck?.aum !== null ? abbreviateNumber(stockDeck?.aum) : "n/a"}NAV {stockDeck?.nav !== null ? abbreviateNumber(stockDeck?.nav) : "n/a"}EPS (ttm) {data?.getStockQuote?.eps !== null ? data?.getStockQuote?.eps?.toFixed(2) : "n/a"}PE Ratio (ttm) {data?.getStockQuote?.pe !== null ? data?.getStockQuote?.pe?.toFixed(2) : "n/a"}Shares Out {data?.getStockQuote?.sharesOutstanding !== null ? abbreviateNumber( data?.getStockQuote?.sharesOutstanding, @@ -843,7 +843,7 @@ >Inception Date {stockDeck?.inceptionDate !== null ? new Date(stockDeck?.inceptionDate)?.toLocaleString( "en-US", @@ -868,7 +868,7 @@ >Ask {$wsAskPrice !== 0 && $wsAskPrice !== null ? $wsAskPrice : (data?.getStockQuote?.ask ?? "-")}Volume {abbreviateNumber(data?.getStockQuote?.volume)} @@ -892,7 +892,7 @@ >Open {data?.getStockQuote?.open?.toFixed(2)} @@ -903,7 +903,7 @@ >Previous Close {data?.getStockQuote?.previousClose?.toFixed(2)} @@ -914,7 +914,7 @@ >Day's Range {data?.getStockQuote?.dayLow?.toFixed(2)} - {data?.getStockQuote?.dayHigh?.toFixed( 2, )}52-Week Range {data?.getStockQuote?.yearLow?.toFixed(2)} - {data?.getStockQuote?.yearHigh?.toFixed( 2, )}Holdings {stockDeck?.holdingsCount !== null ? abbreviateNumber(stockDeck?.holdingsCount) : "n/a"}Expense Ratio {stockDeck?.expenseRatio !== null ? stockDeck?.expenseRatio?.toFixed(2) + "%" : "n/a"}${timeString.replace(/\s/g, " ")}`; + return `${timeString.replace(/\s/g, " ")}`; } else if (["1W", "1M"].includes(displayData)) { const timeString = date?.toLocaleDateString("en-US", { month: "short", day: "numeric", timeZone: "UTC", }); - return `${timeString}`; + return `${timeString}`; } else { const timeString = date?.toLocaleDateString("en-US", { year: "2-digit", month: "short", timeZone: "UTC", }); - return `${timeString}`; + return `${timeString}`; } }, }, @@ -776,7 +776,7 @@ > {@html abbreviateNumber( data?.getStockQuote?.marketCap, false, diff --git a/src/routes/stocks/[tickerID]/profile/employees/+page.svelte b/src/routes/stocks/[tickerID]/profile/employees/+page.svelte index bc726cba..b1e66e9f 100644 --- a/src/routes/stocks/[tickerID]/profile/employees/+page.svelte +++ b/src/routes/stocks/[tickerID]/profile/employees/+page.svelte @@ -149,7 +149,6 @@ // Loop through each point in the shared tooltip this.points.forEach((point) => { tooltipContent += ` - ${point.series.name}: ${point?.y?.toLocaleString("en-US")}
`; }); @@ -353,9 +352,7 @@ >
Employees -
+
{#if Number(employees)} {new Intl.NumberFormat("en")?.format(employees)} {:else} @@ -365,7 +362,7 @@
Change (1Y)
{#if dateDistance} n/a @@ -385,9 +382,7 @@
Revenue / Employee -
+
{#if Number(data?.getStockDeck?.revenuePerEmployee)} ${new Intl.NumberFormat("en")?.format( data?.getStockDeck?.revenuePerEmployee, @@ -399,9 +394,7 @@
Profits / Employee -
+
{#if Number(data?.getStockDeck?.profitPerEmployee)} {formatWithDollarSign(data?.getStockDeck?.profitPerEmployee)} {:else} @@ -411,9 +404,7 @@
Market Cap -
+
{@html abbreviateNumber( data?.getStockQuote?.marketCap, false,