From ba0dfd3622d5a72b07fc1085b235383b20a6f9b1 Mon Sep 17 00:00:00 2001 From: Mateja Date: Sun, 25 Jul 2021 16:45:55 +0200 Subject: Allow product removal on Checkout page. --- client/src/views/Product.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client/src/views/Product.vue') diff --git a/client/src/views/Product.vue b/client/src/views/Product.vue index ff43857..d1fde29 100644 --- a/client/src/views/Product.vue +++ b/client/src/views/Product.vue @@ -47,7 +47,7 @@ export default { this.$store.commit('addToCart'); }, remove() { - this.$store.commit('removeFromCart'); + this.$store.commit('removeFromCart', this.$route.params.id); } } } -- cgit v1.2.3