From 72f31a3ae8767502af1d5c416ce969f783896f74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ram=C3=B3n=20Huidobro?= Date: Sun, 29 Oct 2023 14:58:48 +0100 Subject: [PATCH] Fix linting issues --- guest-list-mobile/app/index.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/guest-list-mobile/app/index.tsx b/guest-list-mobile/app/index.tsx index 7cb5cd0..199e34e 100644 --- a/guest-list-mobile/app/index.tsx +++ b/guest-list-mobile/app/index.tsx @@ -52,13 +52,15 @@ export default function Index() { } async function postGuest(guest: Guest) { - const { firstName, lastName } = guest; const response = await fetch(`${API_URL}/guests`, { method: 'POST', headers: { 'Content-Type': 'application/json', }, - body: JSON.stringify({ firstName, lastName }), + body: JSON.stringify({ + firstName: guest.firstName, + lastName: guest.lastName, + }), }); const newGuest: Guest = await response.json(); setGuests([...guests, newGuest]);