Fix: Clean/clarify condition for bleedingDeleted
This commit is contained in:
@@ -22,7 +22,7 @@ export default function ({
|
||||
}
|
||||
|
||||
function bleedingValueDeletedOrExluded(val) {
|
||||
const bleedingDeleted = !val || (val && !(typeof val.value === 'number'))
|
||||
const bleedingDeleted = !val || !(typeof val?.value === 'number')
|
||||
const bleedingExcluded = val && val.exclude
|
||||
return bleedingDeleted || bleedingExcluded
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user