From 7dc1a0bc5f18f50a5a11aaf9f6ebe319633b2ad2 Mon Sep 17 00:00:00 2001 From: VickyStash Date: Wed, 13 Nov 2024 11:52:24 +0100 Subject: [PATCH] Update isCustomFeed implementation --- src/libs/CardUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/CardUtils.ts b/src/libs/CardUtils.ts index 00ad6524418b..ea3e82dd458e 100644 --- a/src/libs/CardUtils.ts +++ b/src/libs/CardUtils.ts @@ -243,7 +243,7 @@ function getCardFeedIcon(cardFeed: CompanyCardFeed | typeof CONST.EXPENSIFY_CARD } function isCustomFeed(feed: CompanyCardFeed): boolean { - return CONST.COMPANY_CARD.FEED_BANK_NAME.MASTER_CARD === feed || CONST.COMPANY_CARD.FEED_BANK_NAME.VISA === feed || CONST.COMPANY_CARD.FEED_BANK_NAME.AMEX === feed; + return [CONST.COMPANY_CARD.FEED_BANK_NAME.MASTER_CARD, CONST.COMPANY_CARD.FEED_BANK_NAME.VISA, CONST.COMPANY_CARD.FEED_BANK_NAME.AMEX].some((value) => value === feed); } function getCompanyFeeds(cardFeeds: OnyxEntry): CompanyFeeds {