In the challenge description, you see the following:
Another key principle in Redux is that state is read-only. In other words, the reducer function must always return a new copy of state and never modify state directly.
You are currently modifying state directly. Why? Because the following creates a variable named localState that references the state variable. This line does not create a copy of state, therefore any changes to localState makes changes to state.