Skip to content

Commit

Permalink
fix: build
Browse files Browse the repository at this point in the history
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
  • Loading branch information
toddbaert committed Nov 14, 2024
1 parent 5d38f5b commit 5a76d58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hooks/use-products.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { TARGETING_KEY } from "@/libs/targeting-key";
export function useProducts() {
const { data } = useSuspenseQuery({
queryKey: ["products"],
queryFn: async ({ meta }): Promise<Product[]> => {
queryFn: async (): Promise<Product[]> => {
console.log("fetching products");
const res = await fetch(getBaseUrl() + "/api/products", {
cache: "no-store",
Expand All @@ -27,7 +27,7 @@ export function useProducts() {
export function useProduct(id: string) {
const { data } = useSuspenseQuery({
queryKey: ["products", id],
queryFn: async ({ meta }): Promise<Product> => {
queryFn: async (): Promise<Product> => {
console.log(`fetching product ${id}`);
const res = await fetch(getBaseUrl() + `/api/products/${id}`, {
cache: "no-store",
Expand Down

0 comments on commit 5a76d58

Please # to comment.