Skip to content

Commit e5ed5bc

Browse files
authored
Fix arrow function to properly return the object (#1663)
1 parent 6642462 commit e5ed5bc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/usage/usage-guide.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -621,14 +621,14 @@ A typical implementation might look like:
621621
const getRepoDetailsStarted = () => ({
622622
type: "repoDetails/fetchStarted"
623623
})
624-
const getRepoDetailsSuccess = (repoDetails) => {
624+
const getRepoDetailsSuccess = (repoDetails) => ({
625625
type: "repoDetails/fetchSucceeded",
626626
payload: repoDetails
627-
}
628-
const getRepoDetailsFailed = (error) => {
627+
})
628+
const getRepoDetailsFailed = (error) => ({
629629
type: "repoDetails/fetchFailed",
630630
error
631-
}
631+
})
632632
const fetchIssuesCount = (org, repo) => async dispatch => {
633633
dispatch(getRepoDetailsStarted())
634634
try {

0 commit comments

Comments
 (0)