Skip to content

Commit

Permalink
Merge pull request #968 from ethereum-push-notification-service/fix/l…
Browse files Browse the repository at this point in the history
…oading-requests

fixed loading in requests
  • Loading branch information
mishramonalisha76 authored Mar 23, 2023
2 parents 98462fe + 7b33daf commit 36317c0
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 36317c0

Please sign in to comment.