diff --git a/src/components/PostsList.tsx b/src/components/PostsList.tsx index 42461c78d..96ddaaad7 100644 --- a/src/components/PostsList.tsx +++ b/src/components/PostsList.tsx @@ -38,7 +38,9 @@ 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'}