nextjs-subscription-payments icon indicating copy to clipboard operation
nextjs-subscription-payments copied to clipboard

Avatar / profile picture

Open andriusmv opened this issue 3 years ago • 1 comments

How to display the user's default avatar or profile picture? From the users table we already have an avatar_url... but mapping it as a string into a <img src={userDetails ? userDetails.avatar_url : undefined}> doesn't seems to work.

Any idea? maybe is a policie issue here? Thanks. Any example repo on this?

andriusmv avatar Jul 04 '22 15:07 andriusmv

Oh my bad, previous code works but avatar_url was NULL for the user I was trying my app with... in which case I should use a default user avatar in case user has NULL avatar_url column.

andriusmv avatar Jul 04 '22 17:07 andriusmv

@andriusmv Can you close the issue or is there still a bug?

ACPK avatar Sep 19 '22 15:09 ACPK