주가 표시형식 수정
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
*/
|
||||
import type { TickerData } from '../hooks/useMarketTicker';
|
||||
import type { OHLCVBar } from '../types';
|
||||
import { formatUpbitKrwPrice } from './safeFormat';
|
||||
|
||||
export interface ChartLiveQuote {
|
||||
price: number | null;
|
||||
@@ -41,7 +42,7 @@ export function resolveChartLiveQuote(
|
||||
|
||||
export function formatChartLivePrice(price: number | null): string {
|
||||
if (price == null || !Number.isFinite(price)) return '—';
|
||||
return `${Math.round(price).toLocaleString('ko-KR')} KRW`;
|
||||
return `${formatUpbitKrwPrice(price)} KRW`;
|
||||
}
|
||||
|
||||
export function formatChartLiveChangePct(changePct: number | null): string {
|
||||
|
||||
Reference in New Issue
Block a user