diff --git a/utils/numberFormat.js b/utils/numberFormat.js index dc023c65..7fc8dad5 100644 --- a/utils/numberFormat.js +++ b/utils/numberFormat.js @@ -134,10 +134,10 @@ module.exports = { return currencyFormatter.format(value.round()); } - const formattedCurrency = currencyFormatter(value); + const formattedCurrency = currencyFormatter.format(value); if (formattedCurrency === 'NaN') { throw Error( - `invalide value passed to formatCurrency: '${value}' of type ${typeof value}` + `invalid value passed to formatCurrency: '${value}' of type ${typeof value}` ); }