Skip to content

Commit

Permalink
fix: event name
Browse files Browse the repository at this point in the history
  • Loading branch information
nhussein11 committed Jul 31, 2023
1 parent 1af2006 commit dbecf3b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib/components/image/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ export const ImageIPFS = ({
setImgSrc(imgSrcCleaned)
}, [hash, gateway])

const handleOnError = (e: SyntheticEvent<HTMLImageElement, Event>): void => {
if (e.type === 'error') {
const handleOnError = (event: SyntheticEvent<HTMLImageElement, Event>): void => {
if (event.type === 'error') {
setImgSrc(fallbackImage)
}
}
Expand All @@ -50,8 +50,8 @@ export const ImageIPFS = ({
style={style}
className={className}
loading={imgLoading}
onError={(e) => {
handleOnError(e)
onError={(event) => {
handleOnError(event)
}}
{...props}
/>
Expand Down

0 comments on commit dbecf3b

Please sign in to comment.