diff --git a/packages/status-react/src/routes/chat/components/chat-message/reactions.tsx b/packages/status-react/src/routes/chat/components/chat-message/reactions.tsx index 7d2bb41..6a7fe20 100644 --- a/packages/status-react/src/routes/chat/components/chat-message/reactions.tsx +++ b/packages/status-react/src/routes/chat/components/chat-message/reactions.tsx @@ -1,4 +1,4 @@ -import React, { useMemo, useState } from 'react' +import React, { useState } from 'react' import { emojis, @@ -23,9 +23,9 @@ export const MessageReactions = (props: Props) => { const [open, setOpen] = useState(false) - const hasReaction = useMemo(() => { - return Object.values(reactions).some(value => value.size > 0) - }, [reactions]) + const hasReaction = Object.values>(reactions).some( + value => value.size > 0 + ) if (hasReaction === false) { return null