Skip to content

Commit

Permalink
handle edge case: only self reaction
Browse files Browse the repository at this point in the history
  • Loading branch information
yash-rajpal committed Jan 22, 2024
1 parent 1a1a119 commit aa9d791
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const Reaction = ({ hasReacted, counter, name, names, ...props }: ReactionProps)
const { refetch } = useQuery(
['users.getNames', names],
async () => {
if (!names) {
if (names.length === 0) {
return undefined;
}

Expand Down

0 comments on commit aa9d791

Please sign in to comment.