From e9a8b1fe6504ac556e0075ad9f9068e8951c2060 Mon Sep 17 00:00:00 2001 From: Alex Munoz Date: Sat, 14 Mar 2020 21:57:14 +0100 Subject: [PATCH] Update 01.md --- src/exercise/01.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/exercise/01.md b/src/exercise/01.md index 024480d8..aac81bfc 100644 --- a/src/exercise/01.md +++ b/src/exercise/01.md @@ -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) } }