Skip to content

Commit 911c0ca

Browse files
committed
JS scope fix
1 parent f253c54 commit 911c0ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/hw-app-btc/src/Btc.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ btc.createPaymentTransactionNew(
598598
trustedInputs,
599599
segwit
600600
).then(() =>
601-
doIf(!resuming && typeof changePath != "undefined", function() {
601+
doIf(!resuming && typeof changePath != "undefined", () => {
602602
return this.provideOutputFullChangePath(changePath);
603603
}).then(() => this.hashOutputFull(outputScript))
604604
)
@@ -632,7 +632,7 @@ btc.createPaymentTransactionNew(
632632
)
633633
.then(() =>
634634
doIf(!segwit, () =>
635-
doIf(!resuming && typeof changePath != "undefined", function() {
635+
doIf(!resuming && typeof changePath != "undefined", () => {
636636
return this.provideOutputFullChangePath(changePath);
637637
}).then(() => this.hashOutputFull(outputScript))
638638
)

0 commit comments

Comments
 (0)