fix: use strict equality (===) for status code checks to prevent accidental assignment
This commit is contained in:
+1
-1
@@ -172,7 +172,7 @@ export class ClientApprovalComponent {
|
||||
});
|
||||
this.tasksService.submitBatchData(this.batchRequests).subscribe((response: any) => {
|
||||
response.forEach((responseEle: any) => {
|
||||
if ((responseEle.statusCode = '200')) {
|
||||
if (responseEle.statusCode === '200') {
|
||||
activatedAccounts++;
|
||||
responseEle.body = JSON.parse(responseEle.body);
|
||||
if (selectedAccounts === activatedAccounts) {
|
||||
|
||||
@@ -202,7 +202,7 @@ export class LoanApprovalComponent {
|
||||
});
|
||||
this.tasksService.submitBatchData(this.batchRequests).subscribe((response: any) => {
|
||||
response.forEach((responseEle: any) => {
|
||||
if ((responseEle.statusCode = '200')) {
|
||||
if (responseEle.statusCode === '200') {
|
||||
approvedAccounts++;
|
||||
responseEle.body = JSON.parse(responseEle.body);
|
||||
if (selectedAccounts === approvedAccounts) {
|
||||
|
||||
+1
-1
@@ -154,7 +154,7 @@ export class LoanDisbursalComponent {
|
||||
});
|
||||
this.tasksService.submitBatchData(this.batchRequests).subscribe((response: any) => {
|
||||
response.forEach((responseEle: any) => {
|
||||
if ((responseEle.statusCode = '200')) {
|
||||
if (responseEle.statusCode === '200') {
|
||||
approvedAccounts++;
|
||||
responseEle.body = JSON.parse(responseEle.body);
|
||||
if (selectedAccounts === approvedAccounts) {
|
||||
|
||||
Reference in New Issue
Block a user