summaryrefslogtreecommitdiff
path: root/frontend/lib
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/lib')
-rw-r--r--frontend/lib/overview.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/frontend/lib/overview.ts b/frontend/lib/overview.ts
index db30050..efbd9f9 100644
--- a/frontend/lib/overview.ts
+++ b/frontend/lib/overview.ts
@@ -45,10 +45,10 @@ export function buildKpis(overview: TickerOverview): KpiItem[] {
missing: overview.stats.trailing_pe == null
},
{
- key: "EPS ยท TTM",
- value: fmtCurrency(overview.stats.trailing_eps),
- sublabel: `Prev close ${fmtCurrency(overview.quote.prev_close)}`,
- missing: overview.stats.trailing_eps == null
+ key: "Prev Close",
+ value: fmtCurrency(overview.quote.prev_close),
+ sublabel: `Day chg ${fmtCurrency(overview.quote.change)}`,
+ missing: overview.quote.prev_close == null
},
{
key: "52W Position",
@@ -105,7 +105,7 @@ export function watchlistSubtitle(item: WatchlistItem): string {
});
}
-export function sortIndices(indices: MarketIndex[]): MarketIndex[] {
+export function limitIndices(indices: MarketIndex[]): MarketIndex[] {
return [...indices].slice(0, 4);
}