From 5a76d58438ee2e59aea4a3dfb4223fa1dbbc7079 Mon Sep 17 00:00:00 2001 From: Todd Baert Date: Thu, 14 Nov 2024 12:13:10 -0700 Subject: [PATCH] fix: build Signed-off-by: Todd Baert --- src/hooks/use-products.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hooks/use-products.tsx b/src/hooks/use-products.tsx index 7f16afb..12409bb 100644 --- a/src/hooks/use-products.tsx +++ b/src/hooks/use-products.tsx @@ -9,7 +9,7 @@ import { TARGETING_KEY } from "@/libs/targeting-key"; export function useProducts() { const { data } = useSuspenseQuery({ queryKey: ["products"], - queryFn: async ({ meta }): Promise => { + queryFn: async (): Promise => { console.log("fetching products"); const res = await fetch(getBaseUrl() + "/api/products", { cache: "no-store", @@ -27,7 +27,7 @@ export function useProducts() { export function useProduct(id: string) { const { data } = useSuspenseQuery({ queryKey: ["products", id], - queryFn: async ({ meta }): Promise => { + queryFn: async (): Promise => { console.log(`fetching product ${id}`); const res = await fetch(getBaseUrl() + `/api/products/${id}`, { cache: "no-store",