Skip to content

Commit

Permalink
remove artist taver cannot schedule a concert for from wishlist
Browse files Browse the repository at this point in the history
  • Loading branch information
sam9116 committed Nov 11, 2024
1 parent 201b779 commit 1205b35
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/TaleSetup/BaseInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ const BaseInput = forwardRef(({ setConcerts,
if (allCombinationOfConcerts.length < 1) {
alert(`Unable to schedule a plan for the artists you want to see, their schedules conflict with each other`);
//remove the last attempted artist that was causing problem and run the optimization again
setArtistWishlist(artistWishlist.slice(0, -1));
generateOptimizedConcertRoute(allConcerts, userLocation, artistWishlist.slice(0, -1));
}

Expand Down

0 comments on commit 1205b35

Please sign in to comment.