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; } /**