Skip to content

Commit 866c94f

Browse files
committed
Fix conflicts just a tad better:
1 parent ce2b340 commit 866c94f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/libs/actions/IOU.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,10 +200,10 @@ function requestMoney(report, amount, currency, recipientEmail, participant, com
200200
// Then add an optimistic created action
201201
optimisticReportActionsData.value[optimisticCreatedAction.reportActionID] = optimisticCreatedAction;
202202
reportActionsSuccessData.value[optimisticCreatedAction.reportActionID] = {pendingAction: null};
203-
reportActionsFailureData.value[optimisticCreatedAction.reportActionID] = {pendingAction: null};
204203

205-
// If we're going to fail to create the report itself, let's not have redundant error messages for the IOU
206-
reportActionsFailureData.value[optimisticReportAction.reportActionID] = {pendingAction: null};
204+
// Failure data should feature red brick road
205+
reportActionsFailureData.value[optimisticCreatedAction.reportActionID] = {pendingAction: null};
206+
reportActionsFailureData.value[optimisticReportAction.reportActionID] = {pendingAction: CONST.RED_BRICK_ROAD_PENDING_ACTION.ADD};
207207
}
208208

209209
const optimisticData = [

0 commit comments

Comments
 (0)