Last active
November 19, 2017 09:34
-
-
Save lusan/9d2458f5cbf189b9fbea966089cb899a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Reducer | |
export default function fetchDeliveryAddress(state = initialState, action){ | |
switch(action.type){ | |
case FETCH_DELIVERY_ADDRESS_LIST_SUCCESS: | |
return { | |
...state, | |
deliveryAddressList: action.deliveryAddressList, | |
deliveryDetailsState: action.deliveryDetailsState | |
} | |
default: | |
return state; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment