Created
July 25, 2018 15:19
-
-
Save cazala/0c70c623d8b7dbf04e321ff4eac5e129 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
case CHECKMATE: { | |
if (state.status === STATUS.started) { | |
return Object.assign({}, state, { | |
status: STATUS.checkmate | |
}) | |
} | |
return state | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment