Skip to content

Commit

Permalink
Deploy preview for PR 14 🛫
Browse files Browse the repository at this point in the history
  • Loading branch information
felixindynamsoft committed Nov 19, 2024
1 parent b442fc3 commit d04789d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pr-preview/pr-14/js/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ export function extractDocumentFields(result) {

return {
text: `${baseYear}${year}-${result.getFieldValue(monthField)}-${result.getFieldValue(dayField)}`,
status: [yearField, monthField, dayField].every((field) => result.getFieldValidationStatus(field))
status: [yearField, monthField, dayField].every(
(field) => result.getFieldValidationStatus(field) === Dynamsoft.DCP.EnumValidationStatus.VS_SUCCEEDED
)
? Dynamsoft.DCP.EnumValidationStatus.VS_SUCCEEDED
: Dynamsoft.DCP.EnumValidationStatus.VS_FAILED,
};
Expand Down

0 comments on commit d04789d

Please sign in to comment.