Skip to content

Commit

Permalink
JS scope fix
Browse files Browse the repository at this point in the history
  • Loading branch information
meriadec committed May 2, 2018
1 parent f253c54 commit 911c0ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/hw-app-btc/src/Btc.js
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ btc.createPaymentTransactionNew(
trustedInputs,
segwit
).then(() =>
doIf(!resuming && typeof changePath != "undefined", function() {
doIf(!resuming && typeof changePath != "undefined", () => {
return this.provideOutputFullChangePath(changePath);
}).then(() => this.hashOutputFull(outputScript))
)
Expand Down Expand Up @@ -632,7 +632,7 @@ btc.createPaymentTransactionNew(
)
.then(() =>
doIf(!segwit, () =>
doIf(!resuming && typeof changePath != "undefined", function() {
doIf(!resuming && typeof changePath != "undefined", () => {
return this.provideOutputFullChangePath(changePath);
}).then(() => this.hashOutputFull(outputScript))
)
Expand Down

0 comments on commit 911c0ca

Please sign in to comment.