Skip to content

Commit 97825a1

Browse files
committed
fix response.code to be response.status
1 parent 1e12723 commit 97825a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chapter-11/isomorphic/src/pages/CounterPage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const END_POINT = process.env.HOST_NAME || 'localhost:9000';
1414

1515
const initState = () => {
1616
return fetch(`http://${END_POINT}/api/count`).then(response => {
17-
if (response.code !== 200) {
17+
if (response.status !== 200) {
1818
throw new Error('Fail to fetch count');
1919
}
2020
return response.json();

0 commit comments

Comments
 (0)