Skip to content

Commit

Permalink
[CLNP-5592] Returning null after hook execution (#1247)
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
AhyoungRyu authored Nov 7, 2024
1 parent 086f90a commit 05f723d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ui/TypingIndicatorBubble/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,13 @@ const TypingIndicatorBubbleAvatar = (props: TypingIndicatorBubbleProps) => {
const TypingIndicatorBubble = (props: TypingIndicatorBubbleProps) => {
const { typingMembers, handleScroll } = props;

if (typingMembers.length === 0) return null;

useLayoutEffect(() => {
// Keep the scrollBottom value after fetching new message list
handleScroll?.(true);
}, []);

if (typingMembers.length === 0) return null;

return <div
className='sendbird-message-content incoming'
style={{ marginBottom: '2px' }}
Expand Down

0 comments on commit 05f723d

Please sign in to comment.