From 3de71b658b938b591507683b53fb558ddb550f75 Mon Sep 17 00:00:00 2001 From: Avishek Das Date: Tue, 13 Jul 2021 12:35:49 +0530 Subject: [PATCH] fixed cart screen. removed item no longer get added after reloading the cartscreen --- frontend/src/screens/CartScreen.js | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/screens/CartScreen.js b/frontend/src/screens/CartScreen.js index 2d612989d..6c496f15d 100644 --- a/frontend/src/screens/CartScreen.js +++ b/frontend/src/screens/CartScreen.js @@ -22,6 +22,7 @@ function CartScreen({ match, location, history }) { const removeFromCartHandler = (id) => { dispatch(removeFromCart(id)) + history.push("/cart") } const checkoutHandler = () => {