From 7b33daff768502c87daa036ddb0dd2d05c9f5d77 Mon Sep 17 00:00:00 2001 From: Monalisha Mishra Date: Thu, 23 Mar 2023 18:47:31 +0530 Subject: [PATCH] fixed loading in requests --- src/sections/chat/ChatSidebarSection.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sections/chat/ChatSidebarSection.tsx b/src/sections/chat/ChatSidebarSection.tsx index e0a58bddcf..dec5f8e6cf 100644 --- a/src/sections/chat/ChatSidebarSection.tsx +++ b/src/sections/chat/ChatSidebarSection.tsx @@ -110,6 +110,7 @@ useClickAway(containerRef, () => closeQRDropdown()) setReceivedIntents(intents); setLoadingRequests(false); } + setLoadingRequests(false); } const fetchIntentApi = async (): Promise => { const intents = await fetchIntent(connectedUser); @@ -117,6 +118,7 @@ useClickAway(containerRef, () => closeQRDropdown()) setReceivedIntents(intents); setLoadingRequests(false); } + setLoadingRequests(false); return intents; };