Skip to content

Commit

Permalink
Fix type error in Redux Essentials. (reduxjs#3813)
Browse files Browse the repository at this point in the history
  • Loading branch information
samwightt authored and Alok Kattangoori committed Sep 30, 2020
1 parent bc3146c commit 7b4e115
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/tutorials/essentials/part-4-using-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 7b4e115

Please sign in to comment.