Unhandled Rejection (Error): When called with an action of type "CONTACTS_SET", the slice reducer for key "contacts" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.
case contactsType.CONTACTS_SET:
return action.contacts;
case contactsType.CONTACTS_SET:
return action.contacts ? action.contacts : state;