Skip to content

Commit

Permalink
disable routing whenever handouts is empty (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanStepanok authored Aug 21, 2023
1 parent 5cc6e14 commit 630f9b7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Course/Course/Presentation/Handouts/HandoutsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@ struct HandoutsView: View {
} else {
VStack(alignment: .leading) {
HandoutsItemCell(type: .handouts, onTapAction: {
guard let handouts = viewModel.handouts else { return }
viewModel.router.showHandoutsUpdatesView(
handouts: viewModel.handouts,
handouts: handouts,
announcements: nil,
router: viewModel.router,
cssInjector: viewModel.cssInjector)
Expand Down

0 comments on commit 630f9b7

Please sign in to comment.