mirror of
https://github.com/lukevella/rallly.git
synced 2025-08-06 09:59:00 +02:00
🐛Remove call to trpc
This commit is contained in:
parent
90d85de8c0
commit
30f57948e2
1 changed files with 0 additions and 7 deletions
|
@ -7,8 +7,6 @@ import { z } from "zod";
|
||||||
|
|
||||||
import { PostHogProvider } from "@/contexts/posthog";
|
import { PostHogProvider } from "@/contexts/posthog";
|
||||||
import { PreferencesProvider } from "@/contexts/preferences";
|
import { PreferencesProvider } from "@/contexts/preferences";
|
||||||
import { isSelfHosted } from "@/utils/constants";
|
|
||||||
import { trpc } from "@/utils/trpc/client";
|
|
||||||
|
|
||||||
import { useRequiredContext } from "./use-required-context";
|
import { useRequiredContext } from "./use-required-context";
|
||||||
|
|
||||||
|
@ -84,11 +82,6 @@ export const UserProvider = (props: { children?: React.ReactNode }) => {
|
||||||
}
|
}
|
||||||
}, [session.status]);
|
}, [session.status]);
|
||||||
|
|
||||||
// TODO (Luke Vella) [2023-09-19]: Remove this when we have a better way to query for an active subscription
|
|
||||||
trpc.user.subscription.useQuery(undefined, {
|
|
||||||
enabled: !isSelfHosted,
|
|
||||||
});
|
|
||||||
|
|
||||||
if (!user || !session.data) {
|
if (!user || !session.data) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue