diff --git a/src/utils/shorten-number.jsx b/src/utils/shorten-number.jsx index e165b716..0960ec05 100644 --- a/src/utils/shorten-number.jsx +++ b/src/utils/shorten-number.jsx @@ -1,7 +1,5 @@ const { locale } = Intl.NumberFormat().resolvedOptions(); - -export default function shortenNumber(num) { - return Intl.NumberFormat(locale, { - notation: 'compact', - }).format(num); -} +const shortenNumber = Intl.NumberFormat(locale, { + notation: 'compact', +}).format; +export default shortenNumber;