Skip to content

Commit

Permalink
Fix dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
hola-soy-milk committed Oct 29, 2023
1 parent 2028409 commit 863b2bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guest-list-mobile/app/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export default function Index() {
}),
});
const newGuest: Guest = await response.json();
setGuests([...guests, newGuest]);
setGuests((g) => [...g, newGuest]);
}
if (typeof firstName === 'string' && typeof lastName === 'string') {
postGuest({ id: '0', attending: false, firstName, lastName }).catch(
Expand Down

0 comments on commit 863b2bb

Please sign in to comment.