Skip to content

Commit

Permalink
Merge pull request #552 from ITPNYU/hotfix/loading
Browse files Browse the repository at this point in the history
Remove loading after fetching events
  • Loading branch information
rlho authored Jan 15, 2025
2 parents 2e14f3d + 746e479 commit 6ac9136
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -244,10 +244,11 @@ export const DatabaseProvider = ({
setLastItem(bookingsResponse[bookingsResponse.length - 1]);
setAllBookings(bookingsResponse);
}
setBookingsLoading(false);

} catch (error) {
console.error("Error fetching data:", error);
} finally {
setBookingsLoading(false);
}
};

Expand Down

0 comments on commit 6ac9136

Please sign in to comment.