Skip to content

Commit

Permalink
fix: clear errors when removing waypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
samh-nl committed Sep 19, 2023
1 parent 56271f0 commit 7d75ea9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/libs/actions/Transaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,10 @@ function removeWaypoint(transactionID, currentIndex) {
if (!isRemovedWaypointEmpty) {
newTransaction = {
...newTransaction,
// Clear any errors that may be present, which apply to the old route
errorFields: {
route: null,
},
// Clear the existing route so that we don't show an old route
routes: {
route0: {
Expand Down

0 comments on commit 7d75ea9

Please sign in to comment.