Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 39c3130

Browse files
Update 01.md (#17)
1 parent 62973c1 commit 39c3130

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/exercise/01.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,10 @@ async function deleteContact(contactsDispatch, contact) {
138138
contactsDispatch({type: 'start delete', contact})
139139
try {
140140
const response = await contactsClient.deleteContact(contact)
141-
contactsDispatch({type: 'finish update', contact})
141+
contactsDispatch({type: 'finish delete', contact})
142142
return response
143143
} catch (error) {
144-
contactsDispatch({type: 'fail update', error, contact})
144+
contactsDispatch({type: 'fail delete', error, contact})
145145
return Promise.reject(error)
146146
}
147147
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /