fix: when getting user don't return entire user to client, fix: pass user to post component as part of post

This commit is contained in:
Stevan Freeborn
2023-09-11 13:44:51 -05:00
parent 4b74f47e75
commit e29b46cdb1
5 changed files with 76 additions and 50 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ export default async function UserProfilePage({
clerkUserId: params.id,
});
if (user === null) {
if (user === 'USER_NOT_FOUND') {
// TODO: Show real not found component
return <div>Not Found</div>;
}