Added Change this line comment (#40497)
This commit is contained in:
@ -128,13 +128,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