Skip to content

Commit

Permalink
Deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
kyrylomanko committed Jul 2, 2024
1 parent bd7b6be commit 93e998e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ function getComments(postId: number): Comment[] | null {
const foundComments = commentsFromServer.filter(
comment => comment.postId === postId,
);

return foundComments.length > 0 ? foundComments : null;
}

Expand Down

0 comments on commit 93e998e

Please sign in to comment.