Skip to content

Commit

Permalink
remove console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
JIOjosBG committed May 30, 2024
1 parent 9ec5bfa commit e683d78
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/components/common/Image/Image.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ function Image({
// because the `src` prop is not being attached at all to the <img> tag (I guess JSX omits falsy props for the `src` prop).
// That's the reason why we set `failed` value initially, based on the `src` value.
const [failed, setFailed] = useState(isFailed(src))
console.log({src})
useEffect(() => {
setFailed(isFailed(src))
}, [src])
Expand Down

0 comments on commit e683d78

Please sign in to comment.