Closed andriusmv closed 1 year ago
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 Can you close the issue or is there still a bug?
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?