diff --git a/core/src/apps/thp/pairing.py b/core/src/apps/thp/pairing.py index 0eae6b921..433d2d74e 100644 --- a/core/src/apps/thp/pairing.py +++ b/core/src/apps/thp/pairing.py @@ -39,13 +39,13 @@ async def handle_pairing_request( if _is_method_included(ctx, ThpPairingMethod.PairingMethod_CodeEntry): ctx.channel.set_channel_state(ChannelState.TP2) await context.call(ThpCodeEntryCommitment(), ThpCodeEntryChallenge) - - ctx.channel.set_channel_state(ChannelState.TP3) - await context.call_any( - ThpPairingPreparationsFinished(), - MessageType.ThpQrCodeTag, - MessageType.ThpNfcUnidirectionalTag, - ) + else: + ctx.channel.set_channel_state(ChannelState.TP3) + await context.call_any( + ThpPairingPreparationsFinished(), + MessageType.ThpQrCodeTag, + MessageType.ThpNfcUnidirectionalTag, + ) async def handle_code_entry_challenge(