Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ERROR TypeError: "this.contactForm.value.contactLastVerifiedDate is null"
- onSubmit() {
- if (this.contactForm.valid) {
- const newContact = {
- contactType: this.contactForm.value.contactType,
- contactSubType: this.contactForm.value.contactSubType,
- referenceNumber: this.contactForm.value.referenceNumber,
- startDate: this.parseDate(this.contactForm.value.contactStartDate.toString()),
- lastVerifiedDate: (this.contactForm.value.contactLastVerifiedDate != '' && this.contactForm.value.contactLastVerifiedDate) ? this.parseDate(this.contactForm.value.contactLastVerifiedDate.toString()) : '',
- }
- }
- lastVerifiedDate: this
- .parseDate((this.contactForm.value.contactLastVerifiedDate || '').toString()),
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement