diff --git a/_official-contacts-tutorial/app/data.ts b/_official-contacts-tutorial/app/data.ts index 39e5c1f2..5fdc8cf7 100644 --- a/_official-contacts-tutorial/app/data.ts +++ b/_official-contacts-tutorial/app/data.ts @@ -87,8 +87,7 @@ export async function updateContact(id: string, updates: ContactMutation) { if (!contact) { throw new Error(`No contact found for ${id}`); } - await fakeContacts.set(id, { ...contact, ...updates }); - return contact; + return fakeContacts.set(id, { ...contact, ...updates }); } export async function deleteContact(id: string) {