Skip to content

Commit

Permalink
CW-2196 Fixed false loading state
Browse files Browse the repository at this point in the history
  • Loading branch information
pvm-code committed Nov 24, 2023
1 parent ad40271 commit 90bacb5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/shared/hooks/useCases/useDiscussionMessagesById.ts
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,9 @@ export const useDiscussionMessagesById = ({

useEffect(() => {
(async () => {
setIsLoading(true);
if(discussionMessagesWithOwners?.length === 0) {
setIsLoading(true);
}
const discussionMessages = [...(state.data || [])];
const filteredMessages = discussionMessages.filter(
({ moderation }) =>
Expand Down

0 comments on commit 90bacb5

Please sign in to comment.