diff --git a/src/api/index.js b/src/api/index.js
index 090b718..ec4cac7 100644
--- a/src/api/index.js
+++ b/src/api/index.js
@@ -112,7 +112,6 @@ export async function addProductToOrder(orderId, productId, price, quantity) {
};
try {
const { data } = await axios.post(`/api/orders/${orderId}/products`, bodyParameters);
- console.log("addProductToOrder", data)
return data;
} catch (error) {
throw error;
@@ -141,7 +140,6 @@ export async function createProduct(name, description, price, inStock, imageURL,
export async function destroyProduct(id) {
try {
const {data} = await axios.delete(`/api/products/${id}`)
- console.log('The result of deleting:', data)
return data
} catch (error) {
throw error;
diff --git a/src/components/App.js b/src/components/App.js
index 90c5806..32e59b5 100644
--- a/src/components/App.js
+++ b/src/components/App.js
@@ -39,7 +39,6 @@ import { Elements } from "@stripe/react-stripe-js";
const App = () => {
const [fetchId, setFetchId] = useState(null)
- console.log("Here is the result of fetchId:", fetchId);
const [ orders, setOrders ] = useState(getCurrentCart());
const [ token, setToken ] = useState(getCurrentToken());
const [ user, setUser ] = useState(getCurrentUser())
diff --git a/src/components/Board.js b/src/components/Board.js
index ad20648..afeb395 100644
--- a/src/components/Board.js
+++ b/src/components/Board.js
@@ -21,8 +21,6 @@ const MainBoard = (props) => {
async function fetchProducts(){
try{
const data = await getAllProducts()
- console.log('data array ', data)
- console.log('category ', categorysel)
setProductRender(data)
setFetchId(selectedId)
}catch(error){
@@ -34,7 +32,6 @@ const MainBoard = (props) => {
useEffect(() => {
fetchProducts()
},[]);
- console.log('set render ',productRender)
return <>
{user && user.isadmin ?