take user to the onboard page if chip is not set
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
const formatMoney = (amount) => {
|
||||
const formatted = Number.parseFloat(amount).toFixed(2);
|
||||
return `${formatted} KM`;
|
||||
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 formatTime = (amount) => {
|
||||
|
||||
Reference in New Issue
Block a user