Skip to content

Commit

Permalink
fixup! fix(core): fix missing refresh in progress layout
Browse files Browse the repository at this point in the history
  • Loading branch information
TychoVrahe committed Jan 2, 2024
1 parent 5c1cd50 commit 08173f1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core/src/apps/bitcoin/sign_tx/approvers.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,10 +346,10 @@ async def approve_tx(
"Original transactions must have same effective nLockTime as replacement transaction."
)

if signer is not None:
signer.init_signing()

if not self.is_payjoin():
if signer is not None:
signer.init_signing()
title = self._replacement_title(tx_info, orig_txs)
# Not a PayJoin: Show the actual fee difference, since any difference in the fee is
# coming entirely from the user's own funds and from decreases of external outputs.
Expand All @@ -358,6 +358,8 @@ async def approve_tx(
title, fee - orig_fee, fee, fee_rate, coin, amount_unit
)
elif spending > orig_spending:
if signer is not None:
signer.init_signing()
title = self._replacement_title(tx_info, orig_txs)
# PayJoin and user is spending more: Show the increase in the user's contribution
# to the fee, ignoring any contribution from external inputs. Decreasing of
Expand Down

0 comments on commit 08173f1

Please sign in to comment.