Skip to content

Commit

Permalink
Fallback all alt attributes (#40)
Browse files Browse the repository at this point in the history
I forgot to fallback all `alt` attributes 😳
  • Loading branch information
thomasverleye authored Dec 30, 2021
1 parent aef69cb commit 6f10fd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Image/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ export const Image: React.FC<ImagePropTypes> = function ({
{data.src && (
<img
src={data.src}
alt={data.alt}
alt={data.alt ?? ''}
title={data.title}
onLoad={handleLoad}
className={pictureClassName}
Expand Down

0 comments on commit 6f10fd2

Please sign in to comment.