From 1f14d11ea9ce00a11c9dc6a30dcc46706a8e8bdc Mon Sep 17 00:00:00 2001 From: mkzie2 Date: Tue, 3 Dec 2024 16:30:13 +0700 Subject: [PATCH] rename type --- src/libs/actions/IOU.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libs/actions/IOU.ts b/src/libs/actions/IOU.ts index e4d7f29e4f82..19648f89222d 100644 --- a/src/libs/actions/IOU.ts +++ b/src/libs/actions/IOU.ts @@ -205,7 +205,7 @@ type RequestMoneyInformation = { transactionParams: RequestMoneyTransactionParams; }; -type GetMoneyRequestInformation = { +type MoneyRequestInformationParams = { parentChatReport: OnyxEntry; transactionParams: RequestMoneyTransactionParams; participantParams: RequestMoneyParticipantParams; @@ -2053,7 +2053,7 @@ function getSendInvoiceInformation( * Gathers all the data needed to submit an expense. It attempts to find existing reports, iouReports, and receipts. If it doesn't find them, then * it creates optimistic versions of them and uses those instead */ -function getMoneyRequestInformation(moneyRequestInformation: GetMoneyRequestInformation): MoneyRequestInformation { +function getMoneyRequestInformation(moneyRequestInformation: MoneyRequestInformationParams): MoneyRequestInformation { const {parentChatReport, transactionParams, participantParams, policyParams = {}, existingTransaction, existingTransactionID, moneyRequestReportID = ''} = moneyRequestInformation; const {payeeAccountID = userAccountID, payeeEmail = currentUserEmail, participant} = participantParams; const {policy, policyCategories, policyTagList} = policyParams;