From 14addd6d39e96a791f51ec8b5e39d12789fad33b Mon Sep 17 00:00:00 2001 From: Pob <590650@gmail.com> Date: Fri, 19 Oct 2018 03:18:44 +0700 Subject: [PATCH 1/2] set initial state values to be matched with prior standard --- _chapters/render-the-note-form.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_chapters/render-the-note-form.md b/_chapters/render-the-note-form.md index 5e27c8329..9e005b486 100644 --- a/_chapters/render-the-note-form.md +++ b/_chapters/render-the-note-form.md @@ -130,8 +130,8 @@ To complete this code, let's add `isLoading` and `isDeleting` to the state. ``` javascript this.state = { - isLoading: null, - isDeleting: null, + isLoading: false, + isDeleting: false, note: null, content: "", attachmentURL: null From 34c635284fd3aa7f3a3e56f89448b9bb5362adb8 Mon Sep 17 00:00:00 2001 From: Pob <590650@gmail.com> Date: Fri, 19 Oct 2018 03:25:02 +0700 Subject: [PATCH 2/2] same reason for another chapter --- _chapters/add-the-create-note-page.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_chapters/add-the-create-note-page.md b/_chapters/add-the-create-note-page.md index 601320ccf..04b1a49ca 100644 --- a/_chapters/add-the-create-note-page.md +++ b/_chapters/add-the-create-note-page.md @@ -29,7 +29,7 @@ export default class NewNote extends Component { this.file = null; this.state = { - isLoading: null, + isLoading: false, content: "" }; }