diff --git a/src/pages/user/product/single.tsx b/src/pages/user/product/single.tsx index 51a5224..0bab1f1 100644 --- a/src/pages/user/product/single.tsx +++ b/src/pages/user/product/single.tsx @@ -19,7 +19,7 @@ import { useEffect, useState } from "react"; import { useParams } from "react-router"; function ProductSingle() { - const [count, setcount] = useState(1); + const [count, setCount] = useState(1); const { product_id } = useParams(); const mutation = useAddToCart(); const { id } = useTelegramUser(); @@ -54,8 +54,8 @@ function ProductSingle() { ); }; - const decriment = () => count > 1 && setcount(count - 1); - const incriment = () => count < 100 && setcount(count + 1); + const decriment = () => count > 1 && setCount(count - 1); + const incriment = () => count < 100 && setCount(count + 1); return ( @@ -82,7 +82,7 @@ function ProductSingle() {
قیمت :{data?.price && addCommas(data?.price)} تومان
-
+