Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit a22a191

Browse files
committed
Fix add reactions prompt button showing up even if all reactions have been removed
1 parent f0a0d7f commit a22a191

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/components/views/messages/ReactionsRow.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,8 @@ export default class ReactionsRow extends React.PureComponent<IProps, IState> {
174174
/>;
175175
}).filter(item => !!item);
176176

177+
if (!items.length) return null;
178+
177179
// Show the first MAX_ITEMS if there are MAX_ITEMS + 1 or more items.
178180
// The "+ 1" ensure that the "show all" reveals something that takes up
179181
// more space than the button itself.

0 commit comments

Comments
 (0)