added condition for errors

This commit is contained in:
Oleg Hasjanov 2024-02-12 14:54:31 +02:00
parent fa3a629305
commit 25effa8d86
2 changed files with 4 additions and 1 deletions

View file

@ -91,6 +91,8 @@ module Actions
end
def validate_contact
return if @error || !contact.valid?
[:regex, :mx].each do |m|
contact.verify_email(check_level: m, single_email: true)
end

View file

@ -126,6 +126,8 @@ module Actions
end
def validate_contact
return if @error || !contact.valid?
[:regex, :mx].each do |m|
@contact.verify_email(check_level: m, single_email: true)
end
@ -134,4 +136,3 @@ module Actions
end
end
end
end