From 9b11ea3f93c0d8febdf3a9bb0f7847b97df44525 Mon Sep 17 00:00:00 2001 From: Georgia Monahan Date: Wed, 22 Nov 2023 12:39:01 +0000 Subject: [PATCH] syntax update --- src/libs/TransactionUtils.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/libs/TransactionUtils.ts b/src/libs/TransactionUtils.ts index f17b53595df4..baf4ba6fb2f8 100644 --- a/src/libs/TransactionUtils.ts +++ b/src/libs/TransactionUtils.ts @@ -334,10 +334,7 @@ function isExpensifyCardTransaction(transaction: Transaction): boolean { * Determine whether a transaction is made with a card. */ function isCardTransaction(transaction: Transaction): boolean { - if (!transaction.cardID) { - return false; - } - return transaction.cardID > 0; + return (transaction?.cardID ?? 0) > 0; } /**