@smvtech/x-flux 1.1.5 → 1.1.6

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
@@ -616,7 +616,7 @@ function getValidationErrors(validations) {
616
616
  }
617
617
  function getValidationResult(question) {
618
618
  const backendResult = getValidationErrors(question.answer_data?.validations);
619
- if (backendResult) {
619
+ if (backendResult && backendResult.status !== "PERFECT" /* PERFECT */) {
620
620
  return backendResult;
621
621
  }
622
622
  if (question.question.is_required) {
@@ -639,7 +639,7 @@ function getValidationResult(question) {
639
639
  };
640
640
  }
641
641
  }
642
- return {
642
+ return backendResult || {
643
643
  status: "PERFECT" /* PERFECT */,
644
644
  fixable: EMPTY_GROUP,
645
645
  unfixable: EMPTY_GROUP,
package/dist/index.mjs CHANGED
@@ -590,7 +590,7 @@ function getValidationErrors(validations) {
590
590
  }
591
591
  function getValidationResult(question) {
592
592
  const backendResult = getValidationErrors(question.answer_data?.validations);
593
- if (backendResult) {
593
+ if (backendResult && backendResult.status !== "PERFECT" /* PERFECT */) {
594
594
  return backendResult;
595
595
  }
596
596
  if (question.question.is_required) {
@@ -613,7 +613,7 @@ function getValidationResult(question) {
613
613
  };
614
614
  }
615
615
  }
616
- return {
616
+ return backendResult || {
617
617
  status: "PERFECT" /* PERFECT */,
618
618
  fixable: EMPTY_GROUP,
619
619
  unfixable: EMPTY_GROUP,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smvtech/x-flux",
3
- "version": "1.1.5",
3
+ "version": "1.1.6",
4
4
  "description": "x-flux - A powerful React package for managing effective document collection flows, visa questionnaires, travellers, and applications",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",