Skip to content

Commit

Permalink
remove variable
Browse files Browse the repository at this point in the history
  • Loading branch information
rezkiy37 committed Dec 15, 2023
1 parent 6f52ee7 commit 5b6700c
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/libs/actions/IOU.js
Original file line number Diff line number Diff line change
Expand Up @@ -2936,11 +2936,6 @@ function approveMoneyRequest(expenseReport) {
statusNum: CONST.REPORT.STATUS.APPROVED,
},
};
const optimisticNextStepsData = {
onyxMethod: Onyx.METHOD.SET,
key: `${ONYXKEYS.COLLECTION.NEXT_STEP}${expenseReport.reportID}`,
value: null,
};
const optimisticData = [optimisticIOUReportData, optimisticReportActionsData];

const successData = [
Expand Down Expand Up @@ -2968,7 +2963,11 @@ function approveMoneyRequest(expenseReport) {
];

if (!_.isNull(currentNextStep)) {
optimisticData.push(optimisticNextStepsData);
optimisticData.push({
onyxMethod: Onyx.METHOD.SET,
key: `${ONYXKEYS.COLLECTION.NEXT_STEP}${expenseReport.reportID}`,
value: null,
});
failureData.push({
onyxMethod: Onyx.METHOD.MERGE,
key: `${ONYXKEYS.COLLECTION.NEXT_STEP}${expenseReport.reportID}`,
Expand Down

0 comments on commit 5b6700c

Please sign in to comment.