diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/add-pd/add-pd.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/add-pd/add-pd.component.ts index aa7cf174b..575d2a514 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/add-pd/add-pd.component.ts +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/add-pd/add-pd.component.ts @@ -436,7 +436,7 @@ export class AddPdComponent implements OnInit, OnDestroy { // common function for both draft and process pd submitPdDetails(formValue: any, status: string) { - + console.log('inside the submitPdDetails data'); if (this._PDtriggerForm.invalid) { this.validateAllFormFields(this._PDtriggerForm); this.notifier.notify('warning', 'Please Fill All Mandatory Fields.!'); @@ -447,12 +447,10 @@ export class AddPdComponent implements OnInit, OnDestroy { this.notifier.notify('warning', 'Either Mobile or Landline Need.!'); return; } - else if (formValue.mobile_no != null){ - if (formValue.mobile_no.length != 10){ - this.notifier.notify('warning', 'Please Check Applicant Mobile Number.!'); - return; - } - } + else if (formValue.mobile_no != null && formValue.mobile_no.length != 10){ + this.notifier.notify('warning', 'Please Check Applicant Mobile Number.!'); + return; + } else { this.disableAfterSubmit = true;