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 ae486e9e53
This commit is contained in:
Alexandre Paillier
2024-07-24 10:02:54 +02:00
parent 32a103f316
commit 05ddcb5aa4

View File

@@ -12,10 +12,9 @@ static void dummy_cb(void) {
if (ui_pos == UI_712_POS_REVIEW) { if (ui_pos == UI_712_POS_REVIEW) {
ux_flow_next(); ux_flow_next();
ui_pos = UI_712_POS_END; ui_pos = UI_712_POS_END;
} else // UI_712_POS_END } else {
{ // Keep user at the end of the flow
ux_flow_prev(); ux_flow_next();
ui_pos = UI_712_POS_REVIEW;
} }
break; break;
case EIP712_FIELD_INCOMING: case EIP712_FIELD_INCOMING: