-
Notifications
You must be signed in to change notification settings - Fork 21
Closed
Copy link
Labels
🐞 bugSomething isn't workingSomething isn't working📦 componentsRelated to the @swisspost/design-system-components packageRelated to the @swisspost/design-system-components package
Milestone
Description
🐞 Describe the bug
The post-avatar component is designed to display a user's Gravatar image based on their user ID or email.
However, when no Gravatar image exists for the provided ID or email, the component continuously logs errors in the console.
🛠️ To Reproduce
Steps to reproduce the behavior:
- Add a
post-avatarcomponent with an attributeemail="[email protected]". - Open the browser console.
- Observe repeated error messages related to the missing Gravatar image.
✨ Expected behavior
As a developer using the post-avatar component, I expect it to:
- Attempt to fetch the Gravatar image.
- If no Gravatar is found, gracefully fall back to displaying the user’s initials.
- Avoid throwing or logging errors in the console when no image is available.
📷 Screenshots

Metadata
Metadata
Assignees
Labels
🐞 bugSomething isn't workingSomething isn't working📦 componentsRelated to the @swisspost/design-system-components packageRelated to the @swisspost/design-system-components package
Type
Projects
Status
🚀 Done