mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-22 23:08:07 +01:00
FIX: rare alert that recipients list can't be empty
This commit is contained in:
parent
256fecb97b
commit
9a705c84ce
1 changed files with 7 additions and 1 deletions
|
@ -497,7 +497,13 @@ const SendDetails = () => {
|
||||||
};
|
};
|
||||||
await saveToDisk();
|
await saveToDisk();
|
||||||
|
|
||||||
const recipients = outputs.filter(({ address }) => address !== changeAddress);
|
let recipients = outputs.filter(({ address }) => address !== changeAddress);
|
||||||
|
|
||||||
|
if (recipients.length === 0) {
|
||||||
|
// special case. maybe the only destination in this transaction is our own change address..?
|
||||||
|
// (ez can be the case for single-address wallet when doing self-payment for consolidation)
|
||||||
|
recipients = outputs;
|
||||||
|
}
|
||||||
|
|
||||||
navigation.navigate('Confirm', {
|
navigation.navigate('Confirm', {
|
||||||
fee: new BigNumber(fee).dividedBy(100000000).toNumber(),
|
fee: new BigNumber(fee).dividedBy(100000000).toNumber(),
|
||||||
|
|
Loading…
Add table
Reference in a new issue