fix: accounting pazuz page

This commit is contained in:
Sérgio Salgado 2022-03-31 01:40:48 +01:00 committed by José Oliveira
parent c402c9a204
commit 822efaeaea
5 changed files with 78 additions and 42 deletions

View file

@ -10,4 +10,12 @@ const defaultToZero = value =>
const numberToFiatAmount = value =>
value.toLocaleString('en-US', { maximumFractionDigits: 2 })
export { defaultToZero, transformNumber, numberToFiatAmount }
const numberToCryptoAmount = value =>
value.toLocaleString('en-US', { maximumFractionDigits: 5 })
export {
defaultToZero,
transformNumber,
numberToFiatAmount,
numberToCryptoAmount
}