diff --git a/src/app/store/accounts/blockchain/bitcoin/native-segwit-account.hooks.ts b/src/app/store/accounts/blockchain/bitcoin/native-segwit-account.hooks.ts index 981d47e65a2..856aad9b0aa 100644 --- a/src/app/store/accounts/blockchain/bitcoin/native-segwit-account.hooks.ts +++ b/src/app/store/accounts/blockchain/bitcoin/native-segwit-account.hooks.ts @@ -150,8 +150,8 @@ export function useUpdateLedgerSpecificNativeSegwitUtxoHexForAdddressIndexZero() ); inputSigningConfig.forEach(({ index }) => { - // don't update nonWitnessUtxo if it already exists - if (tx.data.inputs.every(input => !isDefined(input.nonWitnessUtxo))) { + // decorate input with nonWitnessUtxo unless it already exists + if (!tx.data.inputs[index].nonWitnessUtxo) { tx.updateInput(index, { nonWitnessUtxo: Buffer.from(inputsTxHex[index], 'hex'), });