diff --git a/src/app/contact/contact.component.ts b/src/app/contact/contact.component.ts index 2733194..42e8223 100644 --- a/src/app/contact/contact.component.ts +++ b/src/app/contact/contact.component.ts @@ -118,10 +118,13 @@ export class ContactComponent implements OnInit { Composer.composeEmailForMonitor(this.contactForm.value, admins), this.contactForm.value.recaptcha).subscribe( res => { + this.showLoading = false; if (res) { this.reset(); this.modalOpen(); - this.showLoading = false; + } else { + this.errorMessage = 'Email sent failed! Please try again.'; + this.contactForm.get('recaptcha').setValue(''); } }, error => {