mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-03-13 19:16:52 +01:00
Merge pull request #2488 from BlueWallet/fix-2390
FIX: Scanning a Vault PSBT Qr code when scanning for a send address h…
This commit is contained in:
commit
e7f4fbc30b
1 changed files with 7 additions and 0 deletions
|
@ -282,6 +282,13 @@ export default class SendDetails extends Component {
|
|||
processAddressData = data => {
|
||||
this.setState({ isLoading: true }, async () => {
|
||||
const recipients = this.state.addresses;
|
||||
if (!data.replace) {
|
||||
// user probably scanned PSBT and got an object instead of string..?
|
||||
this.setState({
|
||||
isLoading: false,
|
||||
});
|
||||
return alert(loc.send.details_address_field_is_not_valid);
|
||||
}
|
||||
const dataWithoutSchema = data.replace('bitcoin:', '').replace('BITCOIN:', '');
|
||||
if (this.state.fromWallet.isAddressValid(dataWithoutSchema)) {
|
||||
recipients[[this.state.recipientsScrollIndex]].address = dataWithoutSchema;
|
||||
|
|
Loading…
Add table
Reference in a new issue