continued the kita-planer
This commit is contained in:
@@ -48,8 +48,7 @@ export default async function InvitePage({
|
||||
select: {
|
||||
firstName: true,
|
||||
lastName: true,
|
||||
email: true,
|
||||
passwordHash: true,
|
||||
emailVerifiedAt: true,
|
||||
kita: { select: { name: true } },
|
||||
},
|
||||
});
|
||||
@@ -57,7 +56,7 @@ export default async function InvitePage({
|
||||
if (!user) notFound();
|
||||
|
||||
const userName = `${user.firstName} ${user.lastName}`;
|
||||
const alreadyAccepted = user.passwordHash !== "";
|
||||
const alreadyAccepted = !!user.emailVerifiedAt;
|
||||
|
||||
return (
|
||||
<div className="flex min-h-screen flex-col bg-muted/30">
|
||||
|
||||
Reference in New Issue
Block a user