Skip to content

Commit

Permalink
Fix useEffect dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
aslaker committed Feb 1, 2021
1 parent 949f353 commit 962726e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/FrameworkCard/FrameworkCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const FrameworkCard = ({ display, name, imgSrc, repoUrl, onNewData }) => {
});
onNewData({ name, ...data });
}
}, [data, name]);
}, [data, name, onNewData]);

return (
<Card height="medium" width="medium" background="light-1">
Expand Down

0 comments on commit 962726e

Please sign in to comment.