Skip to content

Commit

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

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

0 comments on commit ba68a8d

Please sign in to comment.