minor lint fixes

This commit is contained in:
Ramveer
2022-06-08 08:56:08 +02:00
committed by Arnold Gálovics
parent c279b96db7
commit 0644fcdfd7
2 changed files with 8 additions and 9 deletions
@@ -68,11 +68,10 @@ export class CreateLoansAccountComponent implements OnInit {
this.collateralOptions = response.loanCollateralOptions;
});
const clientId = this.loansAccountTemplate.clientId;
const productId= this.loansAccountProductTemplate.loanProductId
const productId = this.loansAccountProductTemplate.loanProductId;
this.loansService.getLoansAccountTemplateResource(clientId, productId).subscribe((response: any) => {
this.multiDisburseLoan = response.multiDisburseLoan;
});
}
/** Get Loans Account Details Form Data */
@@ -121,8 +120,8 @@ export class CreateLoansAccountComponent implements OnInit {
type: collateralEle.type,
value: collateralEle.value,
description: collateralEle.description
})),
disbursementData:this.loansAccount.disbursementData.map((item: any) => ({
})),
disbursementData: this.loansAccount.disbursementData.map((item: any) => ({
expectedDisbursementDate: this.dateUtils.formatDate(item.expectedDisbursementDate, dateFormat),
principal: item.principal
})),
@@ -17,7 +17,7 @@ export class LoansAccountTermsStepComponent implements OnInit, OnChanges {
@Input() loansAccountProductTemplate: any;
/** Loans Account Template */
@Input() loansAccountTemplate: any;
/**Is Multi Disburse Loan */
/** Is Multi Disburse Loan */
@Input() multiDisburseLoan: any;
/** Minimum date allowed. */
@@ -171,13 +171,13 @@ export class LoansAccountTermsStepComponent implements OnInit, OnChanges {
});
}
/**
/**
* Gets the Disbursement Data form array.
* @returns {FormArray} Disbursement Data form array.
*/
get disbursementData(): FormArray {
return this.loansAccountTermsForm.get('disbursementData') as FormArray;
}
get disbursementData(): FormArray {
return this.loansAccountTermsForm.get('disbursementData') as FormArray;
}
/**
* Adds the Disbursement Data entry form to given Disbursement Data entry form array.