@@ -21,7 +21,7 @@ const OneGood = ({className = "oneGood", image, name, price}) => {
const Goods = ({className = "goods", state, goods = [], getData, id}) => {
- useEffect(() => goods.length == 0 && getData(id), [id])
+ useEffect(() => getData(id), [id])
console.log(goods)
return(
<>