Skip to content

Commit

Permalink
ah
Browse files Browse the repository at this point in the history
  • Loading branch information
oklopfer authored Aug 14, 2024
1 parent c02e84b commit 0f36592
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/carousel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,12 @@ impl SimpleComponent for CarouselPagesModel {
self.current += 1;

// If the user hasn't reached the progress page yet.
if self.current < 5 {
if self.current < 4 {
sender.output(CarouselOutput::ShowBackButton).unwrap();
}

// When the user is at the progress page.
if self.current == 5 {
if self.current == 4 {
// Hide the back button, as the user is not supposed to return to previous pages
// after this point.
sender.output(CarouselOutput::HideBackButton).unwrap();
Expand All @@ -139,7 +139,7 @@ impl SimpleComponent for CarouselPagesModel {
}
},
CarouselInput::SkipToErrorPage => {
self.current = 6;
self.current = 5;
self.done
.sender()
.send(crate::done::DoneInput::SwitchToErrorState)
Expand Down

0 comments on commit 0f36592

Please sign in to comment.