feature/IO-3182-Phone-Number-Consent - Checkpoint
This commit is contained in:
@@ -105,7 +105,6 @@ const userReducer = (state = INITIAL_STATE, action) => {
|
||||
...action.payload //Spread current user details in.
|
||||
}
|
||||
};
|
||||
|
||||
case UserActionTypes.SET_SHOP_DETAILS:
|
||||
return {
|
||||
...state,
|
||||
@@ -126,6 +125,14 @@ const userReducer = (state = INITIAL_STATE, action) => {
|
||||
...state,
|
||||
imexshopid: action.payload
|
||||
};
|
||||
case UserActionTypes.UPDATE_BODYSHOP_ENFORCE_CONSENT:
|
||||
return {
|
||||
...state,
|
||||
bodyshop: {
|
||||
...state.bodyshop,
|
||||
enforce_sms_consent: action.payload
|
||||
}
|
||||
};
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user