Created
November 13, 2019 13:58
-
-
Save codeBelt/22994d041fad41c00de1a72304becb70 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
switch (action.type) { | |
case ShowsAction.REQUEST_SHOW_FINISHED: | |
return { | |
...state, | |
show: action.payload, | |
}; | |
case ShowsAction.REQUEST_EPISODES_FINISHED: | |
return { | |
...state, | |
episodes: action.payload, | |
}; | |
default: | |
return state; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment