Skip to content

Commit

Permalink
Fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
hola-soy-milk committed Oct 29, 2023
1 parent d71e058 commit 72f31a3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions guest-list-mobile/app/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit 72f31a3

Please sign in to comment.