Skip to content

Commit

Permalink
Add 'full' parameter to ApproveMoneyRequestParams
Browse files Browse the repository at this point in the history
  • Loading branch information
marcochavezf committed Apr 11, 2024
1 parent 1446d37 commit 1dce7f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/libs/API/parameters/ApproveMoneyRequestParams.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
type ApproveMoneyRequestParams = {
reportID: string;
approvedReportActionID: string;
full?: boolean;
};

export default ApproveMoneyRequestParams;
1 change: 1 addition & 0 deletions src/libs/actions/IOU.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4961,6 +4961,7 @@ function approveMoneyRequest(expenseReport: OnyxTypes.Report | EmptyObject, full
const parameters: ApproveMoneyRequestParams = {
reportID: expenseReport.reportID,
approvedReportActionID: optimisticApprovedReportAction.reportActionID,
full,
};

API.write(WRITE_COMMANDS.APPROVE_MONEY_REQUEST, parameters, {optimisticData, successData, failureData});
Expand Down

0 comments on commit 1dce7f5

Please sign in to comment.