Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Profile Photo Displays Random Image Instead of User Initials When No Image URL is Provided #170

Closed
akshayw1 opened this issue Feb 12, 2025 · 1 comment · Fixed by #171
Closed
Labels
bug Something isn't working feature UI/UX

Comments

@akshayw1
Copy link
Contributor

Bug Report

Describe the bug

The profile photo is currently fetched using a random API instead of displaying user initials when no image URL is provided. For example, if the user's name is "Akshay Waghmare," the expected initials should be "AW," but a random image is shown instead.

To Reproduce

Steps to reproduce the behavior:

  1. Create a new user profile without uploading a profile picture.
  2. Observe that a random profile image is assigned instead of user initials.

Expected behavior

When no profile image URL is provided, the user's initials should be displayed as their profile picture.

Screenshots

Image

Desktop (please complete the following information):

  • OS: [e.g., macOS, Windows, Linux]
  • Browser: [e.g., Chrome, Safari, Firefox]
  • Version: [e.g., 22]

Smartphone (please complete the following information):

  • Device: [e.g., iPhone 13, Samsung Galaxy S22]
  • OS: [e.g., iOS 16, Android 12]
  • Browser: [e.g., Safari, Chrome]
  • Version: [e.g., 22]

Additional context

A fix has been implemented to check for a profile image URL. If a URL exists, it will display the image; otherwise, it will generate initials from the user's name.

@github-actions github-actions bot added bug Something isn't working feature UI/UX labels Feb 12, 2025
Copy link

Hello 👋🏻 @akshayw1! Thankyou for creating an issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working feature UI/UX
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant