vercel / nextjs-subscription-payments

Clone, deploy, and fully customize a SaaS subscription application with Next.js.
https://subscription-payments.vercel.app/
MIT License
6.23k stars 1.27k forks source link

Avatar / profile picture #125

Closed andriusmv closed 1 year ago

andriusmv commented 2 years ago

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 commented 2 years 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.

ACPK commented 1 year ago

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