diff options
Diffstat (limited to 'ui/src/components/main.tsx')
-rw-r--r-- | ui/src/components/main.tsx | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/ui/src/components/main.tsx b/ui/src/components/main.tsx index 9e7d690d..95eeb1df 100644 --- a/ui/src/components/main.tsx +++ b/ui/src/components/main.tsx @@ -480,12 +480,14 @@ export class Main extends Component<any, MainState> { <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> ); } |