From ee6764519d75478f9ed9bb9b64d643058ea568a5 Mon Sep 17 00:00:00 2001 From: Supritha <78655439+supzi-del@users.noreply.github.com> Date: Thu, 11 Feb 2021 21:43:38 +0530 Subject: [PATCH] REMOVED comments (#41048) * Added comments Fixes freeCodeCamp/freeCodeCamp#40903 * remove comments --- .../redux/use-const-for-action-types.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/curriculum/challenges/english/03-front-end-libraries/redux/use-const-for-action-types.md b/curriculum/challenges/english/03-front-end-libraries/redux/use-const-for-action-types.md index 5df85e5c20..5893acce88 100644 --- a/curriculum/challenges/english/03-front-end-libraries/redux/use-const-for-action-types.md +++ b/curriculum/challenges/english/03-front-end-libraries/redux/use-const-for-action-types.md @@ -117,9 +117,7 @@ The action creators and the reducer should reference the `LOGIN` and `LOGOUT` co ## --seed-contents-- ```js -// Change code below this line -// Change code above this line const defaultState = { authenticated: false @@ -128,11 +126,11 @@ const defaultState = { const authReducer = (state = defaultState, action) => { switch (action.type) { - case 'LOGIN': // Change this line + case 'LOGIN': return { authenticated: true } - case 'LOGOUT': // Change this line + case 'LOGOUT': return { authenticated: false }