Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
bistaastha committed Dec 17, 2024
1 parent a462faf commit 88c6870
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/app/core/services/tasks.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -532,9 +532,10 @@ export class TasksService {
}

getAddCorporateCardTask(): Observable<DashboardTask[]> {
return this.orgSettingsService.get().pipe(
map((orgSettings) => {
if (orgSettings.visa_enrollment_settings.enabled || orgSettings.mastercard_enrollment_settings.enabled) {
return this.corporateCreditCardExpenseService.getCorporateCards().pipe(
map((cards) => {
const rtfCards = cards.filter((card) => card.is_visa_enrolled || card.is_mastercard_enrolled);
if (rtfCards.length === 0) {
return this.mapAddCorporateCardTask();
}
})
Expand Down

0 comments on commit 88c6870

Please sign in to comment.