Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Angelo Cordero committed Feb 4, 2023
1 parent 5bdfe8e commit 08f1b29
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/notifiers/projected_slide_notifier.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import '../core/constants.dart';
import '../core/projection_utils.dart';
import '../models/slide_model.dart';


/// Project the slides when selected either by clicking or using arrow keys
// TODO add feature to project slides based on hotkeys
// for example, pressing "1" could jump to the first verse
Expand Down Expand Up @@ -42,7 +41,7 @@ class ProjectedSlideNotifier extends StateNotifier<int?> {

int index = state! + 4;

if (index > slides.length) {
if (index > slides.length - 1) {
return;
}

Expand Down

0 comments on commit 08f1b29

Please sign in to comment.