Skip to content

Commit

Permalink
removed transaction_draft set to null in failureData since its done i…
Browse files Browse the repository at this point in the history
…n optimisticData
  • Loading branch information
adriancova committed Feb 23, 2024
1 parent 7b43b0d commit 73e4b6c
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/libs/actions/IOU.ts
Original file line number Diff line number Diff line change
Expand Up @@ -614,14 +614,6 @@ function buildOnyxDataForMoneyRequest(
pendingFields: null,
},
},

// Remove the temporary transaction used during the creation flow
{
onyxMethod: Onyx.METHOD.SET,
key: `${ONYXKEYS.COLLECTION.TRANSACTION_DRAFT}${CONST.IOU.OPTIMISTIC_TRANSACTION_ID}`,
value: null,
},

{
onyxMethod: Onyx.METHOD.MERGE,
key: `${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${chatReport?.reportID}`,
Expand Down

0 comments on commit 73e4b6c

Please sign in to comment.