Skip to content

Commit decd0b0

Browse files
authored
Merge pull request #61879 from Expensify/cmartins-markMethodAsdeprecated
[No QA] Mark getTransaction as deprecated
2 parents c4b0c9d + d44f32a commit decd0b0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/libs/TransactionUtils/index.ts

+3
Original file line numberDiff line numberDiff line change
@@ -1253,6 +1253,9 @@ function getTaxName(policy: OnyxEntry<Policy>, transaction: OnyxEntry<Transactio
12531253
return Object.values(transformedTaxRates(policy, transaction)).find((taxRate) => taxRate.code === (transaction?.taxCode ?? defaultTaxCode))?.modifiedName;
12541254
}
12551255

1256+
/**
1257+
* @deprecated Get the data straight from Onyx
1258+
*/
12561259
function getTransaction(transactionID: string | number | undefined): OnyxEntry<Transaction> {
12571260
return allTransactions?.[`${ONYXKEYS.COLLECTION.TRANSACTION}${transactionID}`];
12581261
}

0 commit comments

Comments
 (0)