zgl 1 nedēļu atpakaļ
vecāks
revīzija
f392d15447

+ 1 - 1
src/utils/hooks/getProductReviews.ts

@@ -8,7 +8,7 @@ export async function getProductReviews(productId: string) {
     const variables = { product_id: Number(productId), first: 10 };
     
     const {data:response} = await cachedProductRequest<any>(
-      productId,
+      // productId,
       GET_PRODUCT_REVIEWS,
       variables
     );

+ 1 - 1
src/utils/hooks/getProductSwatchAndReview.ts

@@ -6,7 +6,7 @@ import { cachedProductRequest } from "@/utils/hooks/useCache";
 export async function getProductWithSwatchAndReview(urlKey: string) {
   try {
     const {data:dataById} = await cachedProductRequest<SingleProductResponse>(
-      urlKey,
+      // urlKey,
       GET_PRODUCT_SWATCH_REVIEW,
       { urlKey: urlKey }
     );