Skip to content

Commit db8d7d1

Browse files
committed
Don't show bio if it doesn't exist
1 parent 97c32f4 commit db8d7d1

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/components/members/Member.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ export default function Member({ user }: { user: User }) {
2121
const router = useRouter()
2222
const socials = user.socials
2323
const account = user.account
24-
const bioExists = Boolean(account.bio)
2524
const [isHoveringFollowButton, setIsHoveringFollowButton] = useState(false)
2625
const {
2726
shouldShowFollowButton,
@@ -42,7 +41,7 @@ export default function Member({ user }: { user: User }) {
4241
setIsFollowing(!isFollowing)
4342
toggleFollow()
4443
}
45-
console.log({ user })
44+
4645
return (
4746
<li>
4847
<div className="flex items-center space-x-4 lg:space-x-6">
@@ -62,9 +61,7 @@ export default function Member({ user }: { user: User }) {
6261
</A>
6362
<dl className="mt-1 flex-grow flex flex-col justify-between">
6463
<dt className="sr-only">Bio</dt>
65-
<dd className="text-gray-500 text-xs">
66-
{bioExists ? account.bio : 'Coderplex User'}
67-
</dd>
64+
<dd className="text-gray-500 text-xs">{account.bio}</dd>
6865
<dt className="sr-only">Role</dt>
6966
<dt className="sr-only">Social Media</dt>
7067
{socials && (

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy