Skip to content

Commit

Permalink
fix: review issues
Browse files Browse the repository at this point in the history
  • Loading branch information
totraev committed Oct 4, 2024
1 parent 35cc9c1 commit 021b20f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/hooks/useVersions.ts
Original file line number Diff line number Diff line change
@@ -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,
});
Expand Down

0 comments on commit 021b20f

Please sign in to comment.