Skip to content

Commit

Permalink
fix(home): correctly display load more action
Browse files Browse the repository at this point in the history
  • Loading branch information
AXeL-dev committed Jul 17, 2022
1 parent 952e276 commit bafbbea
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ export interface ChannelRendererProps {
function ChannelRenderer(props: ChannelRendererProps) {
const { channel, videos, total, isLoading, maxResults, ...rest } = props;
const hasVideos = isLoading || videos.length > 0;
const hasMore = videos.length > 0 && total > maxResults;
const hasMore =
videos.length > 0 && videos.length >= maxResults && total > maxResults;

return hasVideos ? (
<Box
Expand Down

0 comments on commit bafbbea

Please sign in to comment.