mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-03-03 03:59:10 +01:00
Merge pull request #5953 from BlueWallet/fix-broadcast-after-scanqr
FIX: exception trying broadcast after scanning PSBT from QR
This commit is contained in:
commit
4b8a956a00
1 changed files with 5 additions and 5 deletions
|
@ -126,7 +126,7 @@ const ScanQRCode = () => {
|
|||
const data = decoder.toString();
|
||||
decoder = false; // nullify for future use (?)
|
||||
if (launchedBy) {
|
||||
navigation.navigate(launchedBy, {});
|
||||
navigation.navigate({ name: launchedBy, params: {}, merge: true });
|
||||
}
|
||||
onBarScanned({ data });
|
||||
} else {
|
||||
|
@ -175,7 +175,7 @@ const ScanQRCode = () => {
|
|||
data = Buffer.from(payload, 'hex').toString();
|
||||
}
|
||||
if (launchedBy) {
|
||||
navigation.navigate(launchedBy, {});
|
||||
navigation.navigate({ name: launchedBy, params: {}, merge: true });
|
||||
}
|
||||
onBarScanned({ data });
|
||||
} else {
|
||||
|
@ -238,7 +238,7 @@ const ScanQRCode = () => {
|
|||
bitcoin.Psbt.fromHex(hex); // if it doesnt throw - all good
|
||||
|
||||
if (launchedBy) {
|
||||
navigation.navigate(launchedBy, {});
|
||||
navigation.navigate({ name: launchedBy, params: {}, merge: true });
|
||||
}
|
||||
onBarScanned({ data: Buffer.from(hex, 'hex').toString('base64') });
|
||||
return;
|
||||
|
@ -248,7 +248,7 @@ const ScanQRCode = () => {
|
|||
setIsLoading(true);
|
||||
try {
|
||||
if (launchedBy) {
|
||||
navigation.navigate(launchedBy, {});
|
||||
navigation.navigate({ name: launchedBy, params: {}, merge: true });
|
||||
}
|
||||
onBarScanned(ret.data);
|
||||
} catch (e) {
|
||||
|
@ -304,7 +304,7 @@ const ScanQRCode = () => {
|
|||
const dismiss = () => {
|
||||
onBarScannerDismissWithoutData();
|
||||
if (launchedBy) {
|
||||
navigation.navigate(launchedBy, {});
|
||||
navigation.navigate({ name: launchedBy, params: {}, merge: true });
|
||||
} else {
|
||||
navigation.goBack();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue