Skip to content

Commit

Permalink
Merge pull request #42501 from bernhardoj/fix/40934-no-error-when-cre…
Browse files Browse the repository at this point in the history
…ating-impossible-route

Fix no error message appears when trying to create an impossible route
  • Loading branch information
chiragsalian authored May 23, 2024
2 parents 2985e72 + f21f5ca commit 047fec6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/libs/actions/Transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ function saveWaypoint(transactionID: string, index: string, waypoint: RecentWayp
waypoints: {
[`waypoint${index}`]: waypoint,
},
customUnit: {
quantity: null,
},
},
// We want to reset the amount only for draft transactions (when creating the expense).
// When modifying an existing transaction, the amount will be updated on the actual IOU update operation.
Expand Down

0 comments on commit 047fec6

Please sign in to comment.