fix: check newValue not null

This commit is contained in:
Louis 2025-07-01 13:28:30 +07:00
parent 7b22ba8c54
commit db74f2cf3f
No known key found for this signature in database
GPG Key ID: 44FA9F4D33C37DE2

View File

@ -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
}
}