Revert "Merge branch 'transform-currency-support' into 'master'"

This reverts merge request !14
This commit is contained in:
Bilal Catic
2020-10-06 06:26:23 +00:00
parent cec435f052
commit fcce2b678f
18 changed files with 52 additions and 286 deletions

View File

@@ -1,10 +1,6 @@
const formatMoney = (amount, og) => {
const decimalPlaces = parseInt(og['chip_scale']);
const symbol = og['chip_symbol'];
const prefixed = og['chip_prefixed'];
const formatted = Number.parseFloat(amount).toFixed(decimalPlaces);
return prefixed ? `${symbol} ${formatted}` : `${formatted} ${symbol}`;
const formatMoney = (amount) => {
const formatted = Number.parseFloat(amount).toFixed(2);
return `${formatted} KM`;
}
const formatTime = (amount) => {