mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-22 23:08:07 +01:00
FIX: cant send onchain when scanning QR with address & amount
This commit is contained in:
parent
d697ff66a0
commit
03c7f7e92c
2 changed files with 5 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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) });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue