From 021b20fb08849cda56a562d730be3feafb269f25 Mon Sep 17 00:00:00 2001 From: David Totraev Date: Fri, 4 Oct 2024 07:19:39 +0500 Subject: [PATCH] fix: review issues --- src/app/hooks/useVersions.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/hooks/useVersions.ts b/src/app/hooks/useVersions.ts index e076a867..a1893072 100644 --- a/src/app/hooks/useVersions.ts +++ b/src/app/hooks/useVersions.ts @@ -1,11 +1,11 @@ import { getGlobalParams } from "@/app/api/getGlobalParams"; import { useAPIQuery } from "@/app/hooks/useApi"; -export const VARSIONS_KEY = "VARSIONS"; +export const VERSIONS_KEY = "VERSIONS"; export function useVersions({ enabled = true }: { enabled?: boolean } = {}) { const data = useAPIQuery({ - queryKey: [VARSIONS_KEY], + queryKey: [VERSIONS_KEY], queryFn: getGlobalParams, enabled, });