@@ -2271,10 +2271,10 @@ static void initWarningTipBox(const nbgl_tipBox_t *tipBox)
2271
2271
}
2272
2272
2273
2273
if ((tipBox != NULL ) || (predefinedTipBoxText != NULL )) {
2274
- genericContext .validWarningCtx = true;
2275
2274
// do not display "Swipe to review" if a tip-box is displayed
2276
2275
STARTING_CONTENT .content .extendedCenter .contentCenter .subText = NULL ;
2277
2276
if (predefinedTipBoxText != NULL ) {
2277
+ genericContext .validWarningCtx = true;
2278
2278
STARTING_CONTENT .content .extendedCenter .tipBox .icon = NULL ;
2279
2279
STARTING_CONTENT .content .extendedCenter .tipBox .text = predefinedTipBoxText ;
2280
2280
}
@@ -3569,6 +3569,7 @@ void nbgl_useCaseAdvancedReview(nbgl_operationType_t operationType,
3569
3569
const nbgl_warning_t * warning ,
3570
3570
nbgl_choiceCallback_t choiceCallback )
3571
3571
{
3572
+ memset (& reviewWithWarnCtx , 0 , sizeof (reviewWithWarnCtx ));
3572
3573
// memorize tipBox because it can be in the call stack of the caller
3573
3574
if (tipBox != NULL ) {
3574
3575
memcpy (& activeTipBox , tipBox , sizeof (activeTipBox ));
@@ -3599,7 +3600,6 @@ void nbgl_useCaseAdvancedReview(nbgl_operationType_t operationType,
3599
3600
operationType |= RISKY_OPERATION ;
3600
3601
}
3601
3602
3602
- memset (& reviewWithWarnCtx , 0 , sizeof (reviewWithWarnCtx ));
3603
3603
reviewWithWarnCtx .isStreaming = false;
3604
3604
reviewWithWarnCtx .operationType = operationType ;
3605
3605
reviewWithWarnCtx .tagValueList = tagValueList ;
0 commit comments