Skip to content

Commit c1e0e80

Browse files
fix: correct shoppingCartDispatch name
1 parent 572959e commit c1e0e80

File tree

1 file changed

+1
-1
lines changed
  • code/10 Advanced State Management with Context useReducer/09-dispatching-actions-finished/src/components

1 file changed

+1
-1
lines changed

code/10 Advanced State Management with Context useReducer/09-dispatching-actions-finished/src/components/Product.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { useShoppingCart } from '../store/shopping-cart-context';
22

33
export default function Product({ id, image, title, price, description }) {
4-
const { shoppingCartDispatch } = useShoppingCart();
4+
const { dispatch: shoppingCartDispatch } = useShoppingCart();
55

66
return (
77
<article className="product">

0 commit comments

Comments
 (0)