Disable load more button when there is no content

This commit is contained in:
Alfonso Grillo
2023-01-25 12:56:36 +01:00
parent aafe903e99
commit 1f953c8a93
@@ -85,7 +85,7 @@ struct PollHistory: View {
Text(VectorL10n.pollHistoryLoadMore)
.font(theme.fonts.body)
}
.disabled(viewModel.viewState.isLoading)
.disabled(viewModel.viewState.isLoading || !viewModel.viewState.canLoadMoreContent)
}
}