Skip to content
This repository has been archived by the owner on Aug 3, 2024. It is now read-only.

Commit

Permalink
#89 fix loading
Browse files Browse the repository at this point in the history
  • Loading branch information
sametcn99 committed Jul 22, 2024
1 parent b6542b2 commit 357df98
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions components/ProfileCard/ContactList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,7 @@ export default function ContactList({
allDataFetched = true; // Stop the loop in case of an error
}
}

// Set loading to false when data fetching is complete
if (isMounted) {
setLoading(false);
}
setLoading(false); // Set loading to false when data fetching is complete
};

// Fetch data only when the dialog is open
Expand Down

1 comment on commit 357df98

@vercel
Copy link

@vercel vercel bot commented on 357df98 Jul 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.