fix: fetch real motto from user account in home page
Local Build and Deploy / deploy (push) Successful in 48s
Local Build and Deploy / deploy (push) Successful in 48s
This commit is contained in:
1 parent
e023210382
commit
b71a45e45b
1 file changed
+2
-1
@@ -15,7 +15,7 @@ export default async function HomePage() {
|
||||
const dbUser = await prisma.user
|
||||
.findUnique({
|
||||
where: { id: Number(session.user.id) },
|
||||
select: { username: true, look: true },
|
||||
select: { username: true, look: true, motto: true },
|
||||
})
|
||||
.catch(() => null);
|
||||
|
||||
@@ -28,6 +28,7 @@ export default async function HomePage() {
|
||||
userId={Number(session.user.id)}
|
||||
username={dbUser.username}
|
||||
look={dbUser.look}
|
||||
motto={dbUser.motto}
|
||||
/>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user