diff --git a/docs/tutorials/essentials/part-4-using-data.md b/docs/tutorials/essentials/part-4-using-data.md index f9216d2a79..b3945942b0 100644 --- a/docs/tutorials/essentials/part-4-using-data.md +++ b/docs/tutorials/essentials/part-4-using-data.md @@ -55,7 +55,7 @@ export const SinglePostPage = ({ match }) => { const { postId } = match.params const post = useSelector(state => - state.posts.find(post => post.id === postId) + state.posts.find(post => post.id.toString() === postId) ) if (!post) {