fix: small fixes and release prep
This commit is contained in:
parent
5823485ab7
commit
0ad1ba2f77
20 changed files with 195 additions and 164 deletions
7
new-lamassu-admin/src/utils/number.js
Normal file
7
new-lamassu-admin/src/utils/number.js
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
import * as R from 'ramda'
|
||||
|
||||
const isValidNumber = R.both(R.is(Number), R.complement(R.equals(NaN)))
|
||||
|
||||
const transformNumber = value => (isValidNumber(value) ? value : null)
|
||||
|
||||
export { transformNumber }
|
||||
Loading…
Add table
Add a link
Reference in a new issue