add format to stringify value

This commit is contained in:
Sebastian 2022-01-10 15:07:35 -03:00
parent a2591a29af
commit efaa4af648
No known key found for this signature in database
GPG Key ID: BE4FF68352439FC1

View File

@ -430,6 +430,8 @@ export class Amounts {
n = (n * 10) % amountFractionalBase;
}
}
return s;
const currencyFormatter = new Intl.NumberFormat("en-US");
return currencyFormatter.format(Number(s));
}
}