Skip to content

Commit

Permalink
fixed loading in requests
Browse files Browse the repository at this point in the history
  • Loading branch information
mishramonalisha76 committed Mar 23, 2023
1 parent 98462fe commit 7b33daf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/sections/chat/ChatSidebarSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,15 @@ useClickAway(containerRef, () => closeQRDropdown())
setReceivedIntents(intents);
setLoadingRequests(false);
}
setLoadingRequests(false);
}
const fetchIntentApi = async (): Promise<Feeds[]> => {
const intents = await fetchIntent(connectedUser);
if(JSON.stringify(intents) != JSON.stringify(receivedIntents)) {
setReceivedIntents(intents);
setLoadingRequests(false);
}
setLoadingRequests(false);
return intents;
};

Expand Down

0 comments on commit 7b33daf

Please sign in to comment.