From 92ed949dce38397666b79e6e8e7a313d2566866d Mon Sep 17 00:00:00 2001 From: Eric Schultz Date: Fri, 13 Dec 2024 21:29:21 -0600 Subject: [PATCH] Fix for typescript update --- app/javascript/components/intl/HoudiniIntl.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/components/intl/HoudiniIntl.tsx b/app/javascript/components/intl/HoudiniIntl.tsx index 8e0ad036d..a398f8e1c 100644 --- a/app/javascript/components/intl/HoudiniIntl.tsx +++ b/app/javascript/components/intl/HoudiniIntl.tsx @@ -16,7 +16,7 @@ function rawFormatMoney(intl:IntlShapeParent, amount:Money, opts?:FormatMoneyOpt currency: amount.currency.toUpperCase(), }); - const adjustedAmount = amount.toBigNumber().dividedBy(Math.pow(10, formatter.resolvedOptions().maximumFractionDigits)); + const adjustedAmount = amount.toBigNumber().dividedBy(Math.pow(10, formatter.resolvedOptions().maximumFractionDigits || 0)); return formatter.format(adjustedAmount.toNumber()); }