fix validation: check null values
This commit is contained in:
parent
9a93fb521b
commit
d42ff2be86
@ -4,7 +4,9 @@ import { TElements } from 'core/types/Calculation/Store/elements';
|
||||
import CalculationStore from '../../..';
|
||||
|
||||
const VALIDATIONS = {
|
||||
IS_NULL: valueName => CalculationStore.getValue(valueName) === undefined,
|
||||
IS_NULL: valueName =>
|
||||
CalculationStore.getValue(valueName) === undefined ||
|
||||
CalculationStore.getValue(valueName) === null,
|
||||
LESS_ZERO: valueName => CalculationStore.getValue(valueName) < 0,
|
||||
LESS_OR_EQUALS_ZERO: valueName => CalculationStore.getValue(valueName) <= 0,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user