feat: use name instead of username for mii page
This commit is contained in:
parent
6ffb85c49c
commit
347fa4824e
1 changed files with 2 additions and 1 deletions
|
|
@ -82,6 +82,7 @@ export default async function MiiPage({ params }: Props) {
|
|||
include: {
|
||||
user: {
|
||||
select: {
|
||||
name: true,
|
||||
username: true,
|
||||
},
|
||||
},
|
||||
|
|
@ -193,7 +194,7 @@ export default async function MiiPage({ params }: Props) {
|
|||
{/* Author and Created date */}
|
||||
<div className="mt-2">
|
||||
<Link href={`/profile/${mii.userId}`} className="text-lg">
|
||||
By: <span className="font-bold">@{mii.user.username}</span>
|
||||
By <span className="font-bold">{mii.user.name}</span>
|
||||
</Link>
|
||||
<h4 className="text-sm">
|
||||
Created:{" "}
|
||||
|
|
|
|||
Loading…
Reference in a new issue