Fix: Clean/clarify condition for bleedingDeleted

This commit is contained in:
bl00dymarie
2024-09-26 18:17:55 +02:00
parent a5b058486e
commit 93f412e983
+1 -1
View File
@@ -22,7 +22,7 @@ export default function ({
} }
function bleedingValueDeletedOrExluded(val) { function bleedingValueDeletedOrExluded(val) {
const bleedingDeleted = !val || (val && !(typeof val.value === 'number')) const bleedingDeleted = !val || !(typeof val?.value === 'number')
const bleedingExcluded = val && val.exclude const bleedingExcluded = val && val.exclude
return bleedingDeleted || bleedingExcluded return bleedingDeleted || bleedingExcluded
} }