Skip to content

Commit

Permalink
Fix for typescript update
Browse files Browse the repository at this point in the history
  • Loading branch information
wwahammy committed Dec 14, 2024
1 parent bc89c66 commit 92ed949
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/javascript/components/intl/HoudiniIntl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

Expand Down

0 comments on commit 92ed949

Please sign in to comment.