feat(users): fetch user by id from backend
This commit is contained in:
@@ -15,7 +15,7 @@ import { notFound } from "next/navigation"
|
||||
|
||||
export default async function UserProfilePage({ params }: { params: Promise<{ id: string }> }) {
|
||||
const { id } = await params
|
||||
const user = getUserById(id)
|
||||
const user = await getUserById(id)
|
||||
|
||||
if (!user) {
|
||||
notFound()
|
||||
|
||||
Reference in New Issue
Block a user