Changed error boundary to cover both full hub and disaptch app
This commit is contained in:
@@ -6,11 +6,7 @@ import { RocketIcon } from "@radix-ui/react-icons";
|
||||
const page = async () => {
|
||||
const session = await getServerSession();
|
||||
if (!session) return null;
|
||||
const user = await prisma.user.findUnique({
|
||||
where: {
|
||||
id: session.user.id,
|
||||
},
|
||||
});
|
||||
const user = session.user;
|
||||
if (!user) return null;
|
||||
|
||||
const events = await prisma.event.findMany({
|
||||
|
||||
Reference in New Issue
Block a user