Skip to content

Commit

Permalink
Fix logic of isFieldValid by checking if equal to undefined rather th…
Browse files Browse the repository at this point in the history
…an not equal to null
  • Loading branch information
LiteracyFanatic committed Jul 28, 2023
1 parent f09bb57 commit b62f519
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,7 @@ export class ValidationService {
}

let fieldUID = this.getElementUID(field);
return this.summary[fieldUID] != null;
return this.summary[fieldUID] === undefined;
}

/**
Expand Down

0 comments on commit b62f519

Please sign in to comment.