diff --git a/.env.production b/.env.production index 4a2bc46..459bf15 100644 --- a/.env.production +++ b/.env.production @@ -6,4 +6,4 @@ NEXT_PUBLIC_PUBLIC_URL=https://api.vesmeh.com NEXT_PUBLIC_API_URL=https://api.vesmeh.com/api NEXT_PUBLIC_STORAGE_URL=http://storage.vesmeh.com STORAGE_URL=http://storage.vesmeh.com -NEXT_PUBLIC_PACKAGE_VERSION=1.0.3.5 \ No newline at end of file +NEXT_PUBLIC_PACKAGE_VERSION=1.0.5.7 \ No newline at end of file diff --git a/components/AppsComponent/ProductData/page.jsx b/components/AppsComponent/ProductData/page.jsx index 3ccc2cf..c5f7359 100644 --- a/components/AppsComponent/ProductData/page.jsx +++ b/components/AppsComponent/ProductData/page.jsx @@ -66,7 +66,7 @@ const ProductData = ({ params, data }) => { }; const createProductReview = async () => { - const body = { title: "", comment, rate: "", productId: params.id[0] }; + const body = { title: "", comment, rate: 1, productId: params.id[0] }; try { const data = await Chapar.post( `${process.env.NEXT_PUBLIC_API_URL}/product/review`, @@ -375,7 +375,7 @@ const ProductData = ({ params, data }) => {
-

+

دیدگاه مخاطبان{" "}