From 51a65b9c260d73a83ad9e1196cd599acc11676df Mon Sep 17 00:00:00 2001 From: grdddj Date: Thu, 3 Nov 2022 15:39:33 +0100 Subject: [PATCH] WIP - PIN starts at digit 0 --- core/embed/rust/src/ui/model_tr/component/pin.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/embed/rust/src/ui/model_tr/component/pin.rs b/core/embed/rust/src/ui/model_tr/component/pin.rs index 620be91ef3..a7e0647173 100644 --- a/core/embed/rust/src/ui/model_tr/component/pin.rs +++ b/core/embed/rust/src/ui/model_tr/component/pin.rs @@ -96,8 +96,9 @@ impl PinEntry { let choices = ChoiceFactoryPIN::new(prompt); Self { + // Starting at the digit 0 choice_page: ChoicePage::new(choices) - .with_initial_page_counter(PROMPT_INDEX as u8) + .with_initial_page_counter(PROMPT_INDEX as u8 + 1) .with_carousel(), pin_dots: Child::new(ChangingTextLine::center_mono(String::new())), show_real_pin: false,