From 0f36592ead39498535771e217369521e2f0aa6e5 Mon Sep 17 00:00:00 2001 From: oklopfer <104327997+oklopfer@users.noreply.github.com> Date: Tue, 13 Aug 2024 21:47:22 -0400 Subject: [PATCH] ah --- src/carousel.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/carousel.rs b/src/carousel.rs index 0fa67d6..7287679 100644 --- a/src/carousel.rs +++ b/src/carousel.rs @@ -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(); @@ -139,7 +139,7 @@ impl SimpleComponent for CarouselPagesModel { } }, CarouselInput::SkipToErrorPage => { - self.current = 6; + self.current = 5; self.done .sender() .send(crate::done::DoneInput::SwitchToErrorState)