From 05ddcb5aa495e5057582e910afdff6e242c215a0 Mon Sep 17 00:00:00 2001 From: Alexandre Paillier Date: Wed, 24 Jul 2024 10:02:54 +0200 Subject: [PATCH] Work around last EIP-712 review page being empty on Nanos when we come back to it after reaching the end of the flow Introduced in ae486e9e53b489482781fd3716f290a161bdab98 --- src_bagl/ui_flow_signMessage712.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src_bagl/ui_flow_signMessage712.c b/src_bagl/ui_flow_signMessage712.c index 1bd767a..3ffb5b0 100644 --- a/src_bagl/ui_flow_signMessage712.c +++ b/src_bagl/ui_flow_signMessage712.c @@ -12,10 +12,9 @@ static void dummy_cb(void) { if (ui_pos == UI_712_POS_REVIEW) { ux_flow_next(); ui_pos = UI_712_POS_END; - } else // UI_712_POS_END - { - ux_flow_prev(); - ui_pos = UI_712_POS_REVIEW; + } else { + // Keep user at the end of the flow + ux_flow_next(); } break; case EIP712_FIELD_INCOMING: