WEB-559: Do not call blindly "Is loan catch up running" API

This commit is contained in:
Adam Saghy
2026-01-08 12:15:17 +01:00
parent 532bf0121f
commit 8ad47399b8
@@ -1,4 +1,4 @@
import { Component, Input, OnDestroy, OnInit, inject } from '@angular/core';
import { Component, Input, OnDestroy, inject } from '@angular/core';
import { SystemService } from 'app/system/system.service';
import { environment } from '../../../../environments/environment';
import { FaIconComponent } from '@fortawesome/angular-fontawesome';
@@ -15,7 +15,7 @@ import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
LoanLockedComponent
]
})
export class CobWorkflowComponent implements OnInit, OnDestroy {
export class CobWorkflowComponent implements OnDestroy {
private systemService = inject(SystemService);
/** Wait time between API status calls 30 seg */
@@ -25,10 +25,6 @@ export class CobWorkflowComponent implements OnInit, OnDestroy {
/** Timer to refetch COB Catch-Up status every 5 seconds */
timer: any;
ngOnInit(): void {
this.getCOBCatchUpStatus();
}
ngOnDestroy() {
clearTimeout(this.timer);
}