diff --git a/src/pages/RepoPage/CoverageOnboarding/ActivationBanner/ActivationRequiredSelfHosted/ActivationRequiredSelfHosted.test.tsx b/src/pages/RepoPage/CoverageOnboarding/ActivationBanner/ActivationRequiredSelfHosted/ActivationRequiredSelfHosted.test.tsx index 93640024e0..4396d0a270 100644 --- a/src/pages/RepoPage/CoverageOnboarding/ActivationBanner/ActivationRequiredSelfHosted/ActivationRequiredSelfHosted.test.tsx +++ b/src/pages/RepoPage/CoverageOnboarding/ActivationBanner/ActivationRequiredSelfHosted/ActivationRequiredSelfHosted.test.tsx @@ -17,7 +17,6 @@ const queryClient = new QueryClient({ const queryClientV5 = new QueryClientV5({ defaultOptions: { queries: { retry: false } }, }) - const wrapper: React.FC = ({ children }) => ( diff --git a/src/pages/RepoPage/CoverageOnboarding/ActivationBanner/ActivationRequiredSelfHosted/ActivationRequiredSelfHosted.tsx b/src/pages/RepoPage/CoverageOnboarding/ActivationBanner/ActivationRequiredSelfHosted/ActivationRequiredSelfHosted.tsx index b9f4ee3a80..10b8b6a291 100644 --- a/src/pages/RepoPage/CoverageOnboarding/ActivationBanner/ActivationRequiredSelfHosted/ActivationRequiredSelfHosted.tsx +++ b/src/pages/RepoPage/CoverageOnboarding/ActivationBanner/ActivationRequiredSelfHosted/ActivationRequiredSelfHosted.tsx @@ -1,7 +1,7 @@ import { useSuspenseQuery as useSuspenseQueryV5 } from '@tanstack/react-queryV5' import { useParams } from 'react-router' -import { useSelfHostedCurrentUser } from 'services/selfHosted' +import { SelfHostedCurrentUserQueryOpts } from 'services/selfHosted/SelfHostedCurrentUserQueryOpts' import { SelfHostedSeatsConfigQueryOpts } from 'services/selfHosted/SelfHostedSeatsConfigQueryOpts' import A from 'ui/A' import Banner from 'ui/Banner' @@ -67,10 +67,12 @@ interface URLParams { function ActivationRequiredSelfHosted() { const { provider } = useParams() - const { data } = useSelfHostedCurrentUser() const { data: selfHostedSeats } = useSuspenseQueryV5( SelfHostedSeatsConfigQueryOpts({ provider }) ) + const { data } = useSuspenseQueryV5( + SelfHostedCurrentUserQueryOpts({ provider }) + ) const hasSelfHostedSeats = selfHostedSeats?.seatsUsed &&