fix: check newValue not null
This commit is contained in:
parent
7b22ba8c54
commit
db74f2cf3f
@ -62,7 +62,7 @@ export const normalizeValue = (key: string, value: any) => {
|
||||
) {
|
||||
// Convert to float
|
||||
const newValue = parseFloat(value)
|
||||
if (newValue && !isNaN(newValue)) {
|
||||
if (newValue !== null && !isNaN(newValue)) {
|
||||
return newValue
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user