Skip to content

Commit 24c1867

Browse files
committed
CW-infinite-spinner-on-proposal-creation Refactoring
1 parent af530cd commit 24c1867

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/shared/hooks/useCases/useDiscussionMessagesById.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,9 +316,10 @@ export const useDiscussionMessagesById = ({
316316
...prev,
317317
[discussionId]: true,
318318
}));
319+
setDiscussionMessagesWithOwners([]);
319320
}
320321

321-
if (!state.data || state.data.length === 0) {
322+
if (!state.data) {
322323
setDiscussionMessagesWithOwners([]);
323324
return;
324325
}

0 commit comments

Comments
 (0)