Skip to content

Commit

Permalink
🐛 clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaRogan committed Jan 17, 2020
1 parent c672e56 commit bbce9a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/components/StyledImage/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function usePreloadedImage(src, srcSet) {
};

React.useEffect(() => {
if (requestId) {
if (requestId !== null) {
cancelAnimationFrame(requestId);
}

Expand Down

0 comments on commit bbce9a6

Please sign in to comment.