Skip to content

Commit

Permalink
Fix error.
Browse files Browse the repository at this point in the history
  • Loading branch information
Corofides committed Nov 8, 2023
1 parent 741641e commit 26955fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Hooks/usePosts/usePosts.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const usePosts = () => {
//setPosts([]);
//setLoading(true);

}, [cachedPosts, cachedLoading]);
}, []);

const getPost = (id) => {
return posts.find((post) => {return post.id === id});
Expand Down

0 comments on commit 26955fb

Please sign in to comment.