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

Function onError

packages/shared/src/components/LazyImage.tsx:42–47  ·  view source on GitHub ↗
(event: SyntheticEvent<HTMLImageElement>)

Source from the content-addressed store, hash-verified

40): ReactElement {
41 const src = imgSrc || fallbackSrc;
42 const onError = (event: SyntheticEvent<HTMLImageElement>): void => {
43 if (fallbackSrc && fallbackSrc !== event.currentTarget.src) {
44 // eslint-disable-next-line no-param-reassign
45 event.currentTarget.src = fallbackSrc;
46 }
47 };
48
49 return (
50 <figure

Callers 3

useProfileFormFunction · 0.50
onFilesFunction · 0.50
usePostToSquadFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected