We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e12723 commit 97825a1Copy full SHA for 97825a1
chapter-11/isomorphic/src/pages/CounterPage.js
@@ -14,7 +14,7 @@ const END_POINT = process.env.HOST_NAME || 'localhost:9000';
14
15
const initState = () => {
16
return fetch(`http://${END_POINT}/api/count`).then(response => {
17
- if (response.code !== 200) {
+ if (response.status !== 200) {
18
throw new Error('Fail to fetch count');
19
}
20
return response.json();
0 commit comments