Removed warnings

This commit is contained in:
Aleksandrs Proskurins
2022-10-27 16:00:58 +03:00
parent 807a18af6e
commit 66fa9fb37f
3 changed files with 6 additions and 8 deletions

View File

@@ -153,9 +153,7 @@ struct UserSessionsOverview: View {
ForEach(viewModel.viewState.otherSessionsViewData.prefix(maxOtherSessionsToDisplay)) { viewData in
UserSessionListItem(viewData: viewData,
isSeparatorHidden: viewData == viewModel.viewState.otherSessionsViewData.last,
onBackgroundTap: { sessionId in
viewModel.send(viewAction: .tapUserSession(sessionId))
})
onBackgroundTap: { sessionId in viewModel.send(viewAction: .tapUserSession(sessionId)) })
}
if viewModel.viewState.otherSessionsViewData.count > maxOtherSessionsToDisplay {
UserSessionsListViewAllView(count: viewModel.viewState.otherSessionsViewData.count) {