Skip to content

Commit

Permalink
fix(core/ui): T3T1 confirm_action: hold implies prompt_screen
Browse files Browse the repository at this point in the history
  • Loading branch information
mmilata committed Jun 5, 2024
1 parent dc4b08b commit 81a785a
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ pub fn new_confirm_action_simple<T: Component + Paginate + MaybeTrace + 'static>
content_intro = content_intro.with_subtitle(subtitle);
}

let prompt_screen = prompt_screen.or_else(|| hold.then_some(title));
let prompt_pages: usize = prompt_screen.is_some().into();
let content_intro = content_intro
.map(move |msg| match msg {
Expand Down

0 comments on commit 81a785a

Please sign in to comment.