Skip to content

Commit

Permalink
feat: debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilkuyya committed Nov 13, 2023
1 parent 824675d commit f11c6e9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/filters/dineroCurrency.filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export function formatCurrencyWithDinero(value, factor = 10 ** 2) {
if (Number.isNaN(Number(value))) {
return "";
}
console.trace('formatCurrency', { value });
const amount = Number.parseFloat(value).toFixed(2) * factor;
const dineroObject = Dinero({ amount: amount, currency: "INR" });
const dineroAmount = dineroObject.toRoundedUnit(2);
Expand Down

0 comments on commit f11c6e9

Please sign in to comment.