diff --git a/web/chat/inline-engagement.react.js b/web/chat/inline-engagement.react.js --- a/web/chat/inline-engagement.react.js +++ b/web/chat/inline-engagement.react.js @@ -15,7 +15,7 @@ type Props = { +sidebarThreadInfo: ?ThreadInfo, - +reactions?: ReactionInfo, + +reactions: ReactionInfo, +positioning: 'left' | 'center' | 'right', +label?: ?string, }; @@ -69,9 +69,6 @@ const onClickReaction = React.useCallback( (event: SyntheticEvent) => { event.preventDefault(); - if (!reactions) { - return; - } pushModal( , ); @@ -80,7 +77,7 @@ ); const reactionsList = React.useMemo(() => { - if (!reactions || Object.keys(reactions).length === 0) { + if (Object.keys(reactions).length === 0) { return null; }