fix: joinedAt nullable in UserSchema, guard null in profile page
This commit is contained in:
@@ -188,7 +188,7 @@ export default async function ProfilePage({ params }: ProfilePageProps) {
|
||||
>
|
||||
<Calendar className="h-4 w-4" />
|
||||
<span>
|
||||
Joined {new Date(user.joinedAt).toLocaleDateString()}
|
||||
Joined {user.joinedAt ? new Date(user.joinedAt).toLocaleDateString() : "Unknown"}
|
||||
</span>
|
||||
</div>
|
||||
</Card>
|
||||
|
||||
Reference in New Issue
Block a user