Skip to content

Commit

Permalink
fix: uncaught handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
tamalCodes committed Apr 22, 2024
1 parent 77a58ea commit f6a7df8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pages/clubs/Clubs.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const Clubs = () => {
<main className="container">
<div className="clubspage_main_parent">
<div className="clubspage_cardsdiv">
{isLoading ? (
{isLoading || !clubs || clubs?.length === 0 ? (
<Loading />
) : (
clubs?.map((club, id) => <ClubCard club={club} key={id} />)
Expand Down
2 changes: 1 addition & 1 deletion src/pages/events/all/Events.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const Events = () => {
)}
</div>
<div className="events_div">
{isLoading ? (
{isLoading || !allEvents || allEvents?.length === 0 ? (
<Loading />
) : (
allEvents?.map((event, id) => (
Expand Down

0 comments on commit f6a7df8

Please sign in to comment.