Error you are getting because of the this key:
loginForm.email
It’s not a valid object key.
Write it like this:
return {
...state,
loginForm: {
...state.loginForm,
email: action.payload.email
}
}
Error you are getting because of the this key:
loginForm.email
It’s not a valid object key.
Write it like this:
return {
...state,
loginForm: {
...state.loginForm,
email: action.payload.email
}
}