Skip to content

Commit 05f723d

Browse files
authored
[CLNP-5592] Returning null after hook execution (#1247)
Fixes https://sendbird.atlassian.net/browse/SBISSUE-17681 ### Checklist Put an `x` in the boxes that apply. You can also fill these out after creating the PR. If unsure, ask the members. This is a reminder of what we look for before merging your code. - [x] **All tests pass locally with my changes** - [x] **I have added tests that prove my fix is effective or that my feature works** - [ ] **Public components / utils / props are appropriately exported** - [ ] I have added necessary documentation (if appropriate)
1 parent 086f90a commit 05f723d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ui/TypingIndicatorBubble/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,13 @@ const TypingIndicatorBubbleAvatar = (props: TypingIndicatorBubbleProps) => {
8383
const TypingIndicatorBubble = (props: TypingIndicatorBubbleProps) => {
8484
const { typingMembers, handleScroll } = props;
8585

86-
if (typingMembers.length === 0) return null;
87-
8886
useLayoutEffect(() => {
8987
// Keep the scrollBottom value after fetching new message list
9088
handleScroll?.(true);
9189
}, []);
9290

91+
if (typingMembers.length === 0) return null;
92+
9393
return <div
9494
className='sendbird-message-content incoming'
9595
style={{ marginBottom: '2px' }}

0 commit comments

Comments
 (0)