Skip to content

Commit

Permalink
fixed comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhmenZH committed Sep 26, 2023
1 parent 0fb40fd commit 187fd26
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -228,10 +228,10 @@ export class ContactModalComponent implements OnDestroy {
companyServiceName: data.companyServiceName ?? CompanyServiceName.Service,
'g-recaptcha-response': data['g-recaptcha-response'] ?? '',
// optional fields
...(data.companyName && { companyName: data.companyName?.trim() }),
...(data.jobRole && { jobRole: data.jobRole?.trim() }),
...(data.companySize && { companySize: data.companySize?.trim() }),
...(data.comment && { comment: data.comment?.trim() }),
...(data.companyName?.trim() && { companyName: data.companyName?.trim() }),
...(data.jobRole?.trim() && { jobRole: data.jobRole?.trim() }),
...(data.companySize?.trim() && { companySize: data.companySize?.trim() }),
...(data.comment?.trim() && { comment: data.comment?.trim() }),
};
}
}

0 comments on commit 187fd26

Please sign in to comment.