Skip to content

Commit

Permalink
FIX: cant send onchain when scanning QR with address & amount
Browse files Browse the repository at this point in the history
  • Loading branch information
Overtorment committed Jun 24, 2020
1 parent d697ff6 commit 03c7f7e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions screen/send/confirm.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export default class Confirm extends Component {
async componentDidMount() {
console.log('send/confirm - componentDidMount');
console.log('address = ', this.state.recipients);
if (!this.state.recipients || !this.state.recipients.length) alert('Internal error: recipients list empty (this should never happen)');
this.isBiometricUseCapableAndEnabled = await Biometric.isBiometricUseCapableAndEnabled();
}

Expand Down
4 changes: 4 additions & 0 deletions screen/send/details.js
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,10 @@ export default class SendDetails extends Component {
const value = parseInt(transaction.amountSats);
if (value > 0) {
targets.push({ address: transaction.address, value });
} else if (transaction.amount) {
if (currency.btcToSatoshi(transaction.amount) > 0) {
targets.push({ address: transaction.address, value: currency.btcToSatoshi(transaction.amount) });
}
}
}

Expand Down

0 comments on commit 03c7f7e

Please sign in to comment.