Skip to content

Commit

Permalink
fix(core): Reject callback sanity check causing unintended ui
Browse files Browse the repository at this point in the history
  • Loading branch information
amanCypherock committed Oct 26, 2023
1 parent 6f3b5fe commit 333acae
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/wallet/reconstruct_wallet_flow.c
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,10 @@ static reconstruct_state_e reconstruct_wallet_handler(reconstruct_state_e state,
* we need to inform the host on the type of card error due to which
* operation was aborted, as these are non-recoverable.
*/
reject_cb(ERROR_COMMON_ERROR_CARD_ERROR_TAG,
get_card_error_from_nfc_status(card_error_code));
if (reject_cb) {
reject_cb(ERROR_COMMON_ERROR_CARD_ERROR_TAG,
get_card_error_from_nfc_status(card_error_code));
}
next_state = COMPLETED_WITH_ERRORS;
}

Expand Down

0 comments on commit 333acae

Please sign in to comment.