Created
July 10, 2020 06:39
-
-
Save mcjcloud/c4e320242c2f57b1e9762f7eeec55760 to your computer and use it in GitHub Desktop.
Asterisk Medium Article: uncheckTodo
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
/** | |
* make a request to mark a to-do item as incomplete | |
*/ | |
const uncheckTodo = (todo: TodoItem): void => { | |
if (!todo._id) { | |
return | |
} | |
dispatch(uncompleteTodo(todo._id)) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment