@d4l/collect-lib 1.39.1 → 1.39.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -5319,7 +5319,7 @@ var DecimalGuard = class {
5319
5319
  }
5320
5320
  evaluate(answers) {
5321
5321
  const { operand, questionID, operator } = this;
5322
- if (!operand) {
5322
+ if (operand === void 0) {
5323
5323
  return false;
5324
5324
  }
5325
5325
  const answer = answers[questionID];
@@ -5327,7 +5327,7 @@ var DecimalGuard = class {
5327
5327
  return false;
5328
5328
  }
5329
5329
  const has = parseFloat(answer);
5330
- if (!has || isNaN(has)) {
5330
+ if (isNaN(has)) {
5331
5331
  return false;
5332
5332
  }
5333
5333
  return evaluateOperator(has, operator, operand);
@@ -5571,7 +5571,7 @@ var generateQuestionGuard = (enableWhen, enableBehavior) => {
5571
5571
  guards.push(
5572
5572
  new AnswerCodeGuard(condition.question, condition.operator, condition.answerCoding.code)
5573
5573
  );
5574
- } else if (condition.answerDecimal) {
5574
+ } else if (condition.answerDecimal !== void 0) {
5575
5575
  guards.push(
5576
5576
  new DecimalGuard(condition.question, condition.answerDecimal, condition.operator)
5577
5577
  );