We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e91ff2 commit cdfbabbCopy full SHA for cdfbabb
apps/portal/src/components/global/AppShell.tsx
@@ -135,11 +135,7 @@ export default function AppShell({ children }: Props) {
135
const router = useRouter();
136
const { data: session } = useSession();
137
const { isLoading: isOffersAdminResultsLoading, data: isOffersAdmin } =
138
- trpc.useQuery(['offers.admin.isAdmin'], {
139
- onError: () => {
140
- router.push('/offers');
141
- },
142
- });
+ trpc.useQuery(['offers.admin.isAdmin']);
143
const currentProductNavigation: Readonly<{
144
googleAnalyticsMeasurementID: string;
145
logo?: React.ReactNode;
0 commit comments