Merge pull request #2771 from shubhamkumar9199/fix/status-code-strict-equality

WEB-(409)-fix: use strict equality (===) for status code checks to prevent acci…
This commit is contained in:
Jose Alberto Hernandez
2025-11-05 12:18:41 -05:00
committed by GitHub
3 changed files with 3 additions and 3 deletions
@@ -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) {
@@ -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) {