OpenStock is an open-source alternative to expensive market platforms. Track real-time prices, set personalized alerts, and explore detailed company insights — built openly, for everyone, forever free.
fix: correct docstring for formatMarketCapValue sub-million format
Bortlesboat2d7c30eafbde
diff --git a/lib/utils.ts b/lib/utils.tsindex 6064925..e910ae2 100644--- a/lib/utils.ts+++ b/lib/utils.ts@@ -25,7 +25,7 @@ export function delay(ms: number) {return new Promise((resolve) => setTimeout(resolve, ms));}-// Formatted string like "$3.10T", "$900.00B", "$25.00M" or "$999,999.99"+// Formatted string like "$3.10T", "$900.00B", "$25.00M" or "$999999.99"export function formatMarketCapValue(marketCapUsd: number): string {if (!Number.isFinite(marketCapUsd) || marketCapUsd <= 0) return 'N/A';