diff --git a/src/types/onyx/SearchResults.ts b/src/types/onyx/SearchResults.ts index de1adab7c3ce..1e7c4fbd2ff1 100644 --- a/src/types/onyx/SearchResults.ts +++ b/src/types/onyx/SearchResults.ts @@ -283,9 +283,6 @@ type SearchTransaction = { /** If the transaction has an Ereceipt */ hasEReceipt?: boolean; - /** The transaction description */ - description?: string; - /** The transaction sender ID */ accountID: number; diff --git a/tests/unit/Search/SearchUIUtilsTest.ts b/tests/unit/Search/SearchUIUtilsTest.ts index a21f27c56f8a..9d905a16f502 100644 --- a/tests/unit/Search/SearchUIUtilsTest.ts +++ b/tests/unit/Search/SearchUIUtilsTest.ts @@ -383,7 +383,6 @@ const searchResults: OnyxTypes.SearchResults = { currency: 'USD', hasEReceipt: false, isFromOneTransactionReport: true, - description: '', hasViolation: false, merchant: 'Expense', modifiedAmount: 0, @@ -426,7 +425,6 @@ const searchResults: OnyxTypes.SearchResults = { currency: 'USD', hasEReceipt: false, isFromOneTransactionReport: true, - description: '', hasViolation: true, merchant: 'Expense', modifiedAmount: 0, @@ -484,7 +482,6 @@ const searchResults: OnyxTypes.SearchResults = { transactionType: 'cash', receipt: undefined, taxAmount: undefined, - description: '', mccGroup: undefined, modifiedMCCGroup: undefined, moneyRequestReportActionID: '789', @@ -525,7 +522,6 @@ const searchResults: OnyxTypes.SearchResults = { transactionID: transactionID4, transactionThreadReportID: '1014872441234902', transactionType: 'cash', - description: '', receipt: undefined, taxAmount: undefined, mccGroup: undefined, @@ -837,7 +833,6 @@ const transactionsListItems = [ transactionType: 'cash', receipt: undefined, taxAmount: undefined, - description: '', mccGroup: undefined, modifiedMCCGroup: undefined, moneyRequestReportActionID: '789', @@ -904,7 +899,6 @@ const transactionsListItems = [ transactionType: 'cash', receipt: undefined, taxAmount: undefined, - description: '', mccGroup: undefined, modifiedMCCGroup: undefined, moneyRequestReportActionID: '789', @@ -977,7 +971,6 @@ const transactionsListItems = [ isTaxAmountColumnWide: false, receipt: undefined, taxAmount: undefined, - description: '', mccGroup: undefined, modifiedMCCGroup: undefined, moneyRequestReportActionID: '789', @@ -1045,7 +1038,6 @@ const transactionsListItems = [ isTaxAmountColumnWide: false, receipt: undefined, taxAmount: undefined, - description: '', mccGroup: undefined, modifiedMCCGroup: undefined, moneyRequestReportActionID: '789', @@ -1112,7 +1104,6 @@ const transactionReportGroupListItems = [ created: '2024-12-21', currency: 'USD', date: '2024-12-21', - description: '', formattedFrom: 'Admin', formattedMerchant: 'Expense', formattedTo: '', @@ -1217,7 +1208,6 @@ const transactionReportGroupListItems = [ created: '2024-12-21', currency: 'USD', date: '2024-12-21', - description: '', formattedFrom: 'Admin', formattedMerchant: 'Expense', formattedTo: 'Admin', @@ -1832,7 +1822,7 @@ describe('SearchUIUtils', () => { expect(distanceTransaction).toBeDefined(); expect(distanceTransaction?.iouRequestType).toBe(CONST.IOU.REQUEST_TYPE.DISTANCE); - const expectedPropertyCount = 57; + const expectedPropertyCount = 56; expect(Object.keys(distanceTransaction ?? {}).length).toBe(expectedPropertyCount); }); @@ -1860,7 +1850,7 @@ describe('SearchUIUtils', () => { expect(distanceTransaction).toBeDefined(); expect(distanceTransaction?.iouRequestType).toBe(CONST.IOU.REQUEST_TYPE.DISTANCE); - const expectedPropertyCount = 57; + const expectedPropertyCount = 56; expect(Object.keys(distanceTransaction ?? {}).length).toBe(expectedPropertyCount); });