We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62973c1 commit 39c3130Copy full SHA for 39c3130
src/exercise/01.md
@@ -138,10 +138,10 @@ async function deleteContact(contactsDispatch, contact) {
138
contactsDispatch({type: 'start delete', contact})
139
try {
140
const response = await contactsClient.deleteContact(contact)
141
- contactsDispatch({type: 'finish update', contact})
+ contactsDispatch({type: 'finish delete', contact})
142
return response
143
} catch (error) {
144
- contactsDispatch({type: 'fail update', error, contact})
+ contactsDispatch({type: 'fail delete', error, contact})
145
return Promise.reject(error)
146
}
147
0 commit comments