skip to Main Content

Mongodb – Unhandled Runtime Error TypeError: productsInfos.find(…) is undefined

import { useContext, useEffect, useState } from "react" import Layout from "../components/Layout" import { ProductsContext } from "../components/ProductsContext" export default function CheckoutPage(){ const {selectedProducts,setSelectedProducts} = useContext(ProductsContext) const [productsInfos,setProductsInfos] = useState([]); const [address,setAddress] = useState(''); const [city,setCity] = useState(''); const [name,setName]…

VIEW QUESTION
Back To Top
Search