Skip to content

Commit

Permalink
update redirected
Browse files Browse the repository at this point in the history
  • Loading branch information
ocitocit committed Oct 14, 2023
1 parent 2bbfc78 commit e3b7291
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/listings/[listingId]/ListingClient.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@ const ListingClient: React.FC<ListingClientProps> = ({
.then(() => {
toast.success('Listing reserved!');
setDateRange(initialDateRange);
//redirect to /trips
router.refresh();
router.push('/trips');
})
.catch(() => {
toast.error('Something went wrong!');
Expand Down

0 comments on commit e3b7291

Please sign in to comment.