Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
fbeutin-ledger committed Aug 25, 2023
1 parent 195269a commit b6a35a5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/ui/validate_transaction_nbgl.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,18 +179,21 @@ void ui_validate_amounts(void) {
const char *p4;
switch (G_swap_ctx.subcommand) {
case SWAP:
dyn_string_1 = G_swap_ctx.received_transaction.currency_from;
dyn_string_2 = G_swap_ctx.received_transaction.currency_to;
case SWAP_NG:
dyn_string_1 = G_swap_ctx.swap_transaction.currency_from;
dyn_string_2 = G_swap_ctx.swap_transaction.currency_to;
p3 = REVIEW_P3_SWAP;
p4 = REVIEW_P4_SWAP;
break;
case SELL:
case SELL_NG:
dyn_string_1 = G_swap_ctx.sell_transaction.in_currency;
dyn_string_2 = G_swap_ctx.sell_transaction.out_currency;
p3 = REVIEW_P3_SELL;
p4 = REVIEW_P4_SELL;
break;
case FUND:
case FUND_NG:
dyn_string_1 = "";
dyn_string_2 = G_swap_ctx.fund_transaction.in_currency;
p3 = REVIEW_P3_FUND;
Expand Down

0 comments on commit b6a35a5

Please sign in to comment.