Skip to content

Commit

Permalink
Update use-remove-from-cart-and-redirect for last item removal handling.
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenDufresne committed Jan 19, 2025
1 parent 1a976af commit 7ee9365
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export default function useRemoveFromCartAndRedirect(
createUserAndSiteBeforeTransaction,
previousPath: customizedPreviousPath || previousPath,
tracksEvent: 'calypso_empty_cart_redirect',
userHasClearedCart: true,
} );
}, [
createUserAndSiteBeforeTransaction,
Expand Down

0 comments on commit 7ee9365

Please sign in to comment.