Skip to content

Commit

Permalink
fix: comment modal on mobile (#3607)
Browse files Browse the repository at this point in the history
  • Loading branch information
sshanzel authored Oct 1, 2024
1 parent 11727ba commit 63421cc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/shared/src/components/modals/post/CommentModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ import useCommentById from '../../../hooks/comments/useCommentById';
import { getAllCommentsQuery } from '../../../lib/query';

const getComment = (data: PostCommentsData, commentId: string) => {
if (!data?.postComments?.edges) {
return undefined;
}

// eslint-disable-next-line no-restricted-syntax
for (const item of data?.postComments?.edges) {
if (item.node.id === commentId) {
Expand Down

0 comments on commit 63421cc

Please sign in to comment.