fix eslint error (#20127)

This commit is contained in:
sean-brydon authored and GitHub committed 2025-03-18 20:21:08 +00:00
1 parent cc1b6bac4a
commit c2547acb3d
1 file changed
+4 -2
@@ -1,3 +1,5 @@
"use client";
import { useSession } from "next-auth/react";
import { useMemo } from "react";
@@ -6,7 +8,7 @@ import { trpc } from "@calcom/trpc/react";
import { type AllBannerProps } from "./LayoutBanner";
const _useBanners = () => {
const useBannersInternal = () => {
const { data: getUserTopBanners, isPending } = trpc.viewer.me.getUserTopBanners.useQuery();
const { data: userSession } = useSession();
@@ -39,7 +41,7 @@ const useBannersHeight = (banners: AllBannerProps | null) => {
};
const useBanners = () => {
const banners = _useBanners();
const banners = useBannersInternal();
const bannersHeight = useBannersHeight(banners);
return { banners, bannersHeight };
};