Skip to content

Commit 40de8d8

Browse files
committed
Should this be response instead req?
1 parent 4672cef commit 40de8d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/async/actions/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function fetchPosts(reddit) {
3939
return dispatch => {
4040
dispatch(requestPosts(reddit));
4141
return fetch(`http://www.reddit.com/r/${reddit}.json`)
42-
.then(req => req.json())
42+
.then(response => response.json())
4343
.then(json => dispatch(receivePosts(reddit, json)));
4444
}
4545
}

0 commit comments

Comments
 (0)