Skip to content

Commit

Permalink
work for the surveyjs/private-tasks#242 (review-2)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-kurmanov committed Jul 27, 2023
1 parent 631a4c8 commit c8759e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/question_text.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ export class QuestionTextModel extends QuestionTextBase {
) {
const validateResult = emailValidator.validate(this.value, valName);

if (!!validateResult) {
if (!!validateResult && !!validateResult.error) {
const maxError = new CustomError(
validateResult.error.getText(),
this
Expand Down

0 comments on commit c8759e6

Please sign in to comment.