Skip to content

Broken avatar images #2437

Answered by TheSisb
jwbaer asked this question in General
May 27, 2022 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

Hi @jwbaer,

I can solve this entirely on our side by checking all the images as we retrieve customer records from the CRM that is integrated with Frontline and setting them to undefined if the image is bad or doesn't exist. However, I'm wondering if it might make more sense for the Avatar component to do something in an onError handler.

I'm not sure that the Paste Avatar component should be checking for an onLoad error automatically on images. For many users, they will be serving their own stored assets and so they have confidence the image will load. In those instances, additional onError logic would just add some performance overhead. That said, this isn't a great experience for you I…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@TheSisb
Comment options

Answer selected by serifluous
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants