Skip to content

Commit 2c2d933

Browse files
No need to set nbMaxLinesForValue to 0, use NB_MAX_LINES_IN_REVIEW
1 parent 7e2cef1 commit 2c2d933

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src_nbgl/ui_sign_712.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ static bool display_review_page(uint8_t page, nbgl_pageContent_t *content) {
2929
nbgl_getTextMaxLenInNbLines(BAGL_FONT_INTER_MEDIUM_32px,
3030
strings.tmp.tmp,
3131
SCREEN_WIDTH - (2 * BORDER_MARGIN),
32-
9,
32+
NB_MAX_LINES_IN_REVIEW,
3333
&len);
3434
strings.tmp.tmp[len] = '\0';
3535

@@ -39,7 +39,6 @@ static bool display_review_page(uint8_t page, nbgl_pageContent_t *content) {
3939
content->tagValueList.nbPairs = 1;
4040
content->tagValueList.pairs = &pair;
4141
content->tagValueList.wrapping = false;
42-
content->tagValueList.nbMaxLinesForValue = 0;
4342
ret = true;
4443
break;
4544

src_nbgl/ui_sign_712_v0.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ static bool display_review_page(uint8_t page, nbgl_pageContent_t *content) {
3030

3131
content->type = TAG_VALUE_LIST;
3232
content->tagValueList.nbPairs = 2;
33-
content->tagValueList.nbMaxLinesForValue = 0;
3433
content->tagValueList.pairs = (nbgl_layoutTagValue_t *) pairs;
3534
} else if (page == 1) {
3635
g_position = UI_SIGNING_POSITION_SIGN;

0 commit comments

Comments
 (0)