From 421b5056c6e7cdf5f2f73a96fb433d4d7dac8de3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Lesiecki?= Date: Sat, 1 Nov 2025 22:19:52 +0100 Subject: [PATCH] do not waste a number formatter --- packages/@react-aria/progress/src/useProgressBar.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@react-aria/progress/src/useProgressBar.ts b/packages/@react-aria/progress/src/useProgressBar.ts index e754677366e..6afcc502a80 100644 --- a/packages/@react-aria/progress/src/useProgressBar.ts +++ b/packages/@react-aria/progress/src/useProgressBar.ts @@ -50,9 +50,9 @@ export function useProgressBar(props: AriaProgressBarProps): ProgressBarAria { value = clamp(value, minValue, maxValue); let percentage = (value - minValue) / (maxValue - minValue); - let formatter = useNumberFormatter(formatOptions); if (!isIndeterminate && !valueLabel) { + let formatter = useNumberFormatter(formatOptions); let valueToFormat = formatOptions.style === 'percent' ? percentage : value; valueLabel = formatter.format(valueToFormat); }