From 357df98e11926b8d49cf8524e77e8daade93e63a Mon Sep 17 00:00:00 2001 From: samet Date: Mon, 22 Jul 2024 09:59:31 +0300 Subject: [PATCH] #89 fix loading --- components/ProfileCard/ContactList.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/components/ProfileCard/ContactList.tsx b/components/ProfileCard/ContactList.tsx index 486015c..bf35b6b 100644 --- a/components/ProfileCard/ContactList.tsx +++ b/components/ProfileCard/ContactList.tsx @@ -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