Skip to content

Commit 7e111af

Browse files
authored
Update part5a.md
added the word "state" to make it clearer, less confusing.
1 parent 4fff38d commit 7e111af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/5/en/part5a.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ If the login is successful, the form fields are emptied <i>and</i> the server re
159159

160160
If the login fails or running the function _loginService.login_ results in an error, the user is notified.
161161

162-
The user is not notified about a successful login in any way. Let's modify the application to show the login form only <i>if the user is not logged-in</i>, so when _user === null_. The form for adding new notes is shown only if the <i>user is logged-in</i>, so when <i>user</i> contains the user's details.
162+
The user is not notified about a successful login in any way. Let's modify the application to show the login form only <i>if the user is not logged-in</i>, so when _user === null_. The form for adding new notes is shown only if the <i>user is logged-in</i>, so when <i>user</i> state contains the user's details.
163163

164164
Let's add two helper functions to the <i>App</i> component for generating the forms:
165165

0 commit comments

Comments
 (0)