diff --git a/packages/widgets/src/stocks/component.tsx b/packages/widgets/src/stocks/component.tsx index 326301d54..c5dfe15d6 100644 --- a/packages/widgets/src/stocks/component.tsx +++ b/packages/widgets/src/stocks/component.tsx @@ -67,12 +67,13 @@ export default function StockPriceWidget({ options, width, height }: WidgetCompo 280 ? 1 : 2} fw={700}> - {round(stockValues[stockValues.length - 1] ?? 0)} + {new Intl.NumberFormat().format(round(stockValues[stockValues.length - 1] ?? 0))} {width > 280 && ( - {Math.abs(stockValuesChange)} ({Math.abs(stockValuesChangePercentage)}%) + {new Intl.NumberFormat().format(stockValuesChange)} ({stockValuesChange > 0 ? "+" : ""} + {new Intl.NumberFormat().format(stockValuesChangePercentage)}%) )}