Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. ERROR TypeError: "this.contactForm.value.contactLastVerifiedDate is null"
  2.  
  3. onSubmit() {
  4. if (this.contactForm.valid) {
  5. const newContact = {
  6. contactType: this.contactForm.value.contactType,
  7. contactSubType: this.contactForm.value.contactSubType,
  8. referenceNumber: this.contactForm.value.referenceNumber,
  9. startDate: this.parseDate(this.contactForm.value.contactStartDate.toString()),
  10. lastVerifiedDate: (this.contactForm.value.contactLastVerifiedDate != '' && this.contactForm.value.contactLastVerifiedDate) ? this.parseDate(this.contactForm.value.contactLastVerifiedDate.toString()) : '',
  11. }
  12. }
  13.  
  14. lastVerifiedDate: this
  15. .parseDate((this.contactForm.value.contactLastVerifiedDate || '').toString()),
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement