diff --git a/README.md b/README.md index bf5129c..ce27e97 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ This is a simple E-Commerce site made with React and TailwindCSS. Your job is to 1. [Sort Products by Price and Release Date](https://github.com/developer-job-simulation/react-ecommerce/issues/1) 1. [Cart Persistence on Refresh](https://github.com/developer-job-simulation/react-ecommerce/issues/2) 1. [Add Product Filters Functionality](https://github.com/developer-job-simulation/react-ecommerce/issues/3) -1. [Product Fetch is Causing Infinite Loop](https://github.com/developer-job-simulation/react-ecommerce/issues/4) +1. ~~[Product Fetch is Causing Infinite Loop](https://github.com/developer-job-simulation/react-ecommerce/issues/4)~~ 1. [Need to display 'Empty Cart' When Cart is Empty on Cart Page](https://github.com/developer-job-simulation/react-ecommerce/issues/5) 1. [Update Cart in Nav with Cart Size](https://github.com/developer-job-simulation/react-ecommerce/issues/6) 1. [Cart not closing when User Clicks Gray Region](https://github.com/developer-job-simulation/react-ecommerce/issues/7) diff --git a/package-lock.json b/package-lock.json index d01ddfa..bbd664e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5,6 +5,7 @@ "requires": true, "packages": { "": { + "name": "react-ecommerce", "version": "0.0.1", "dependencies": { "@headlessui/react": "^1.6.0", diff --git a/src/Components/ProductTable.jsx b/src/Components/ProductTable.jsx index ea76621..4bcff02 100644 --- a/src/Components/ProductTable.jsx +++ b/src/Components/ProductTable.jsx @@ -41,7 +41,7 @@ export default function ProductTable({ cart, updateCart }) { setProducts(body); }; fetchProducts(); - }); + }, []); return (