summaryrefslogtreecommitdiffstats
path: root/ui/src/components/community.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'ui/src/components/community.tsx')
-rw-r--r--ui/src/components/community.tsx14
1 files changed, 8 insertions, 6 deletions
diff --git a/ui/src/components/community.tsx b/ui/src/components/community.tsx
index 6bcd88b1..03766bdc 100644
--- a/ui/src/components/community.tsx
+++ b/ui/src/components/community.tsx
@@ -192,12 +192,14 @@ export class Community extends Component<any, State> {
<T i18nKey="prev">#</T>
</button>
)}
- <button
- class="btn btn-sm btn-secondary"
- onClick={linkEvent(this, this.nextPage)}
- >
- <T i18nKey="next">#</T>
- </button>
+ {this.state.posts.length == fetchLimit && (
+ <button
+ class="btn btn-sm btn-secondary"
+ onClick={linkEvent(this, this.nextPage)}
+ >
+ <T i18nKey="next">#</T>
+ </button>
+ )}
</div>
);
}