Browse Source

Wallet: use === when comparing with undefined

hk-custom-address
Daniel Cousens 11 years ago
parent
commit
300facf7aa
  1. 2
      src/wallet.js

2
src/wallet.js

@ -67,7 +67,7 @@ Wallet.prototype.createTx = function(to, value, fixedFee, changeAddress) {
var outpoint = utxo.from.split(':') var outpoint = utxo.from.split(':')
tx.addInput(outpoint[0], parseInt(outpoint[1])) tx.addInput(outpoint[0], parseInt(outpoint[1]))
var fee = fixedFee == undefined ? estimatePaddedFee(tx, this.network) : fixedFee var fee = fixedFee === undefined ? estimatePaddedFee(tx, this.network) : fixedFee
accum += utxo.value accum += utxo.value
subTotal = value + fee subTotal = value + fee

Loading…
Cancel
Save