REMOVED comments (#41048)
* Added comments Fixes freeCodeCamp/freeCodeCamp#40903 * remove comments
This commit is contained in:
@ -117,9 +117,7 @@ The action creators and the reducer should reference the `LOGIN` and `LOGOUT` co
|
|||||||
## --seed-contents--
|
## --seed-contents--
|
||||||
|
|
||||||
```js
|
```js
|
||||||
// Change code below this line
|
|
||||||
|
|
||||||
// Change code above this line
|
|
||||||
|
|
||||||
const defaultState = {
|
const defaultState = {
|
||||||
authenticated: false
|
authenticated: false
|
||||||
@ -128,11 +126,11 @@ const defaultState = {
|
|||||||
const authReducer = (state = defaultState, action) => {
|
const authReducer = (state = defaultState, action) => {
|
||||||
|
|
||||||
switch (action.type) {
|
switch (action.type) {
|
||||||
case 'LOGIN': // Change this line
|
case 'LOGIN':
|
||||||
return {
|
return {
|
||||||
authenticated: true
|
authenticated: true
|
||||||
}
|
}
|
||||||
case 'LOGOUT': // Change this line
|
case 'LOGOUT':
|
||||||
return {
|
return {
|
||||||
authenticated: false
|
authenticated: false
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user