diff --git a/src/App.js b/src/App.js index ef5a1ae..5b49d6f 100644 --- a/src/App.js +++ b/src/App.js @@ -23,7 +23,7 @@ const App = () => { if(selectedPost) { selectPost(posts.find(post => post.id === selectedPost.id)); } - }, [posts, selectedPost]); + }, [posts]); const reload = async () => {