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('')); } }