fix: userIcon typo

This commit is contained in:
zkldi
2023-01-26 15:11:25 +00:00
parent 2e7f892579
commit 0b1ea4bb11
+4 -1
View File
@@ -12,7 +12,10 @@ export default function UserIcon({
}: { user: UserDocument } & Partial<JustChildren> & Partial<GamePT>) {
return (
<div className="text-center p-8">
<ProfilePicture user={user} toGPT={`${game}/${playtype}`} />
<ProfilePicture
user={user}
toGPT={game && playtype ? `games/${game}/${playtype}` : undefined}
/>
<h4 className="mt-2">
<Link
className="gentle-link"