fix: verify if total in cassettes is NaN
This commit is contained in:
parent
05b65fe7f0
commit
1595f4f60e
2 changed files with 5 additions and 5 deletions
|
|
@ -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 }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue