feat: add cashin bill counter
fix: fiat amount formatting
This commit is contained in:
parent
219dca7f90
commit
98a2797494
17 changed files with 239 additions and 218 deletions
|
|
@ -7,4 +7,7 @@ const transformNumber = value => (isValidNumber(value) ? value : null)
|
|||
const defaultToZero = value =>
|
||||
isValidNumber(parseInt(value)) ? parseInt(value) : 0
|
||||
|
||||
export { defaultToZero, transformNumber }
|
||||
const numberToFiatAmount = value =>
|
||||
value.toLocaleString('en-US', { maximumFractionDigits: 2 })
|
||||
|
||||
export { defaultToZero, transformNumber, numberToFiatAmount }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue