mirror of
https://github.com/yangshun/tech-interview-handbook.git
synced 2025-07-04 23:43:51 +08:00
[offers][fix] fix redirection for non logged in users (#556)
This commit is contained in:
@ -135,11 +135,7 @@ export default function AppShell({ children }: Props) {
|
||||
const router = useRouter();
|
||||
const { data: session } = useSession();
|
||||
const { isLoading: isOffersAdminResultsLoading, data: isOffersAdmin } =
|
||||
trpc.useQuery(['offers.admin.isAdmin'], {
|
||||
onError: () => {
|
||||
router.push('/offers');
|
||||
},
|
||||
});
|
||||
trpc.useQuery(['offers.admin.isAdmin']);
|
||||
const currentProductNavigation: Readonly<{
|
||||
googleAnalyticsMeasurementID: string;
|
||||
logo?: React.ReactNode;
|
||||
|
Reference in New Issue
Block a user