From ac7a4031a809bac9ba958319ad678ea70df8618a Mon Sep 17 00:00:00 2001
From: Dessalines <tyhou13@gmx.com>
Date: Sun, 19 Jan 2020 16:47:54 -0500
Subject: Hide next paginator.

- Fixes #441
- Hide post sort radio if no comments.
---
 ui/src/components/post.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'ui/src/components/post.tsx')

diff --git a/ui/src/components/post.tsx b/ui/src/components/post.tsx
index d4869386..c4bfccee 100644
--- a/ui/src/components/post.tsx
+++ b/ui/src/components/post.tsx
@@ -178,7 +178,7 @@ export class Post extends Component<any, PostState> {
                 postId={this.state.post.id}
                 disabled={this.state.post.locked}
               />
-              {this.sortRadios()}
+              {this.state.comments.length > 0 && this.sortRadios()}
               {this.commentsTree()}
             </div>
             <div class="col-12 col-sm-12 col-md-4">
-- 
cgit v1.2.3

