MCPcopy Create free account
hub / github.com/dailydotdev/apps / onError

Function onError

packages/shared/src/components/ProfilePicture.tsx:75–79  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

73 );
74
75let onError: ReactEventHandler<HTMLImageElement> = (e) => {
76 const target = e.target as HTMLImageElement;
77 target.onerror = null;
78 target.src = fallbackImages.avatar;
79};
80
81export function setOnError(
82 newOnError: ReactEventHandler<HTMLImageElement>,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected