From 81000125491760bef1ed82124468ca6bcbc3966f Mon Sep 17 00:00:00 2001 From: "venbatechnologies@gmail.com" Date: Mon, 8 Jul 2019 20:20:42 +0530 Subject: [PATCH] issues fixed : ps --- .../forms/financial-info/financial-info.component.ts | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/financial-info/financial-info.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/financial-info/financial-info.component.ts index 1b99fe31a..f18d9f500 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/financial-info/financial-info.component.ts +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/financial-info/financial-info.component.ts @@ -659,18 +659,14 @@ export class FinancialInfoComponent implements OnInit { } /** fin customer data from Fin statement*/ selectedFinancialCustomer(e: any): void { + const control = this.financialForm.controls['estimated_value']; if(e == 'yes'){ - const control = this.financialForm.controls['estimated_value']; - while (control.length !== 0) { control.removeAt(0); } } - else if (e == 'no'){ - const control = this.financialForm.controls['estimated_value']; - if(control.length === 0){ - control.push(this.createValue('')); - } + else if (e == 'no' && control.length === 0){ + control.push(this.createValue('')); } }