Skip to content

Commit

Permalink
remove pending fields
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanDylann committed Dec 14, 2023
1 parent e81ed8f commit fd6bcf6
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/libs/actions/Transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,6 @@ function addStop(transactionID: string) {

function saveWaypoint(transactionID: string, index: string, waypoint: RecentWaypoint | null, isDraft = false) {
Onyx.merge(`${isDraft ? ONYXKEYS.COLLECTION.TRANSACTION : ONYXKEYS.COLLECTION.TRANSACTION_DRAFT}${transactionID}`, {
pendingFields: {
waypoints: isDraft ? CONST.RED_BRICK_ROAD_PENDING_ACTION.UPDATE : CONST.RED_BRICK_ROAD_PENDING_ACTION.ADD,
},
comment: {
waypoints: {
[`waypoint${index}`]: waypoint,
Expand Down

0 comments on commit fd6bcf6

Please sign in to comment.