From e66a014572164315dec0da1b00506b08cf9782a1 Mon Sep 17 00:00:00 2001 From: unknown <34411636+Dandevmt@users.noreply.github.com> Date: Thu, 28 Mar 2024 21:09:42 -0600 Subject: [PATCH] Don't require email for balloon --- Client/src/app/components/balloon/balloon.component.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Client/src/app/components/balloon/balloon.component.ts b/Client/src/app/components/balloon/balloon.component.ts index 3cbe860..8740884 100644 --- a/Client/src/app/components/balloon/balloon.component.ts +++ b/Client/src/app/components/balloon/balloon.component.ts @@ -44,7 +44,10 @@ export class BalloonComponent implements OnInit { if (this.errorMessages.length > 0){ return; } const body = `Location of balloon: ${this.location}\n${this.body}`; - const email = this.email || ' '; + let email = this.email; + if (!email || email.length === 0) { + email = 'N/A'; + } this.submitButtonText = "Please Wait..."; this.submitButtonDisabled = true;