Skip to content

Commit

Permalink
fix(image): fix empty
Browse files Browse the repository at this point in the history
  • Loading branch information
tanmen committed Nov 27, 2023
1 parent ded034b commit a635f2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/images/Image/Image.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const Image: FC<Props> = ({src, alt, empty, width, height, className, sty
load={load}
width={width}
height={height}
src={!error ? src : empty}
src={src && !error ? src : empty}
onLoad={() => setLoad(false)}
onError={() => {
setError(true);
Expand Down

0 comments on commit a635f2e

Please sign in to comment.