From 25af186140ffbe37eb2144edbf116265822082ac Mon Sep 17 00:00:00 2001 From: Sam Wight Date: Tue, 14 Jul 2020 09:11:14 -0500 Subject: [PATCH] Fix type error in Redux Essentials. --- docs/tutorials/essentials/part-4-using-data.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {