fix: verify if total in cassettes is NaN

This commit is contained in:
José Oliveira 2021-03-22 16:40:31 +00:00
parent 05b65fe7f0
commit 1595f4f60e
2 changed files with 5 additions and 5 deletions

View file

@ -4,4 +4,4 @@ const isValidNumber = R.both(R.is(Number), R.complement(R.equals(NaN)))
const transformNumber = value => (isValidNumber(value) ? value : null)
export { transformNumber }
export { transformNumber, isValidNumber }