From f70270a0b3ddc93358db495fdee662a48c177b95 Mon Sep 17 00:00:00 2001 From: Ajay Bura Date: Fri, 22 Oct 2021 17:02:42 +0530 Subject: [PATCH] Fixed inconsistent search in emojiboard. Signed-off-by: Ajay Bura --- src/app/organisms/emoji-board/EmojiBoard.jsx | 6 +++--- src/app/organisms/room/PeopleDrawer.jsx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/organisms/emoji-board/EmojiBoard.jsx b/src/app/organisms/emoji-board/EmojiBoard.jsx index 3f473e4..2cdef53 100644 --- a/src/app/organisms/emoji-board/EmojiBoard.jsx +++ b/src/app/organisms/emoji-board/EmojiBoard.jsx @@ -87,10 +87,10 @@ function SearchedEmoji() { function handleSearchEmoji(resultEmojis, term) { if (term === '' || resultEmojis.length === 0) { if (term === '') setSearchedEmojis(null); - else setSearchedEmojis([]); + else setSearchedEmojis({ emojis: [] }); return; } - setSearchedEmojis(resultEmojis); + setSearchedEmojis({ emojis: resultEmojis }); } useEffect(() => { @@ -102,7 +102,7 @@ function SearchedEmoji() { if (searchedEmojis === null) return false; - return ; + return ; } function EmojiBoard({ onSelect }) { diff --git a/src/app/organisms/room/PeopleDrawer.jsx b/src/app/organisms/room/PeopleDrawer.jsx index dcddc76..dc58015 100644 --- a/src/app/organisms/room/PeopleDrawer.jsx +++ b/src/app/organisms/room/PeopleDrawer.jsx @@ -149,7 +149,7 @@ function PeopleDrawer({ roomId }) { }
{ - mList.length !== 0 && mList.length > itemCount && ( + mList.length !== 0 && memberList.length > itemCount && ( ) }