Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
bistaastha committed Feb 21, 2024
1 parent daf794d commit 428d623
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/fyle/dashboard/card-stats/card-stats.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export class CardStatsComponent implements OnInit {
filterVirtualCardsByStateAndAmount(cardDetails: PlatformCorporateCardDetail[]): PlatformCorporateCardDetail[] {
return cardDetails.filter((cardDetail) => {
const virtualCardVisibility =
cardDetail.stats?.totalTxnsCount > 0 ||
cardDetail.stats.totalTxnsCount > 0 ||
cardDetail.card.virtual_card_state === CardStatus.ACTIVE ||
cardDetail.card.virtual_card_state === CardStatus.PREACTIVE;
return cardDetail.card.virtual_card_id ? virtualCardVisibility : true;
Expand Down

0 comments on commit 428d623

Please sign in to comment.