From d44f32a52974fbd5974746229bc61685188fc82d Mon Sep 17 00:00:00 2001 From: Carlos Martins Date: Mon, 12 May 2025 16:41:42 -0600 Subject: [PATCH] mark method as deprecated --- src/libs/TransactionUtils/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libs/TransactionUtils/index.ts b/src/libs/TransactionUtils/index.ts index ecdad93934f0..201121e758d3 100644 --- a/src/libs/TransactionUtils/index.ts +++ b/src/libs/TransactionUtils/index.ts @@ -1253,6 +1253,9 @@ function getTaxName(policy: OnyxEntry, transaction: OnyxEntry taxRate.code === (transaction?.taxCode ?? defaultTaxCode))?.modifiedName; } +/** + * @deprecated Get the data straight from Onyx + */ function getTransaction(transactionID: string | number | undefined): OnyxEntry { return allTransactions?.[`${ONYXKEYS.COLLECTION.TRANSACTION}${transactionID}`]; }