Skip to content

Commit

Permalink
Fix linting error
Browse files Browse the repository at this point in the history
  • Loading branch information
hola-soy-milk committed Feb 21, 2024
1 parent c084080 commit b5d8d54
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions guest-list-mobile/app/guests/[id].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ export default function Guests() {

useEffect(() => {
async function loadGuest() {
if (typeof id !== 'string') {
return;
}
const response = await fetch(`${API_URL}/guests/${id}`);
const fetchedGuest = await response.json();
setGuest(fetchedGuest);
Expand Down

0 comments on commit b5d8d54

Please sign in to comment.