Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/exercise/01.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,10 @@ async function deleteContact(contactsDispatch, contact) {
contactsDispatch({type: 'start delete', contact})
try {
const response = await contactsClient.deleteContact(contact)
contactsDispatch({type: 'finish update', contact})
contactsDispatch({type: 'finish delete', contact})
return response
} catch (error) {
contactsDispatch({type: 'fail update', error, contact})
contactsDispatch({type: 'fail delete', error, contact})
return Promise.reject(error)
}
}
Expand Down