diff --git a/src/components/PostsList.tsx b/src/components/PostsList.tsx index 1120607e4..42461c78d 100644 --- a/src/components/PostsList.tsx +++ b/src/components/PostsList.tsx @@ -38,9 +38,7 @@ export const PostsList: React.FC = ({ posts }) => { className={classNames('button is-link', { 'is-light': selectedPost?.id !== post.id, })} - onClick={() => { - setSelectedPost(selectedPost?.id === post.id ? null : post); - }} + onClick={() => setSelectedPost(selectedPost?.id === post.id ? null : post)} > {selectedPost?.id === post.id ? 'Close' : 'Open'}