Huthaifa-Dev / project

Avoid using console in code that runs on browser JS-0002
Bug risk
Major
2 months ago2 years old
Avoid using console in code that runs on the browser
 12  const navigate = useNavigate();
 13  useEffect(() => {
 14    if (user) {
 15      console.log("remember me", user); 16      navigate("/home");
 17    }
 18  }, []);
Avoid using console in code that runs on the browser
215            })}
216          >
217            {carts.map((cart, index) => {
218              console.log(cart.id);219              return (
220                <option key={index} value={cart.id}>
221                  Cart {index + 1} created at{" "}
Avoid using console in code that runs on the browser
178                                  );
179                                }}
180                                onBlur={(e) => {
181                                  console.log("blur");182                                }}
183                                type="number"
184                              />
Avoid using console in code that runs on the browser
 88      });
 89  };
 90  const handleSubmitCart = () => {
 91    console.log("submit"); 92  };
 93
 94  const calculateTotal = (total, discount) => {
Avoid using console in code that runs on the browser
 68        ).toFixed(2);
 69        product.data.tax = parseInt(newTax);
 70      }
 71      console.log(product.data); 72      const response = await axios.patch(
 73        `${PRODUCTS_URL}/${data.id}` + ".json",
 74        product.data