Skip to content

Commit 39c3130

Browse files
authored
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)