WEB-639: Refactor redundant boolean comparisons (#3063)
improve improve improve improve
This commit is contained in:
@@ -230,7 +230,7 @@ export class LoanApprovalComponent {
|
||||
this.tasksService.getAllLoansToBeApproved().subscribe((response: any) => {
|
||||
this.loans = response.pageItems;
|
||||
this.loans = this.loans.filter((account: any) => {
|
||||
return account.status.waitingForDisbursal === true;
|
||||
return account.status.waitingForDisbursal;
|
||||
});
|
||||
this.dataSource = new MatTableDataSource(this.loans);
|
||||
this.selection = new SelectionModel(true, []);
|
||||
|
||||
+1
-1
@@ -177,7 +177,7 @@ export class LoanDisbursalComponent {
|
||||
this.tasksService.getAllLoansToBeDisbursed().subscribe((response: any) => {
|
||||
this.loans = response.pageItems;
|
||||
this.loans = this.loans.filter((account: any) => {
|
||||
return account.status.waitingForDisbursal === true;
|
||||
return account.status.waitingForDisbursal;
|
||||
});
|
||||
this.dataSource = new MatTableDataSource(this.loans);
|
||||
this.selection = new SelectionModel(true, []);
|
||||
|
||||
Reference in New Issue
Block a user