mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-03-13 19:16:52 +01:00
Update SendDetails.tsx
This commit is contained in:
parent
3adb90abff
commit
950848181e
1 changed files with 20 additions and 16 deletions
|
@ -872,29 +872,33 @@ const SendDetails = () => {
|
|||
const data = routeParams.onBarScanned;
|
||||
if (data) {
|
||||
if (selectedDataProcessor.current) {
|
||||
if (
|
||||
selectedDataProcessor.current === CommonToolTipActions.ImportTransactionQR ||
|
||||
selectedDataProcessor.current === CommonToolTipActions.CoSignTransaction ||
|
||||
selectedDataProcessor.current === CommonToolTipActions.SignPSBT
|
||||
) {
|
||||
if (selectedDataProcessor.current === CommonToolTipActions.ImportTransactionQR) {
|
||||
switch (selectedDataProcessor.current) {
|
||||
case CommonToolTipActions.ImportTransactionQR:
|
||||
importQrTransactionOnBarScanned(data);
|
||||
} else if (
|
||||
selectedDataProcessor.current === CommonToolTipActions.CoSignTransaction ||
|
||||
selectedDataProcessor.current === CommonToolTipActions.SignPSBT
|
||||
) {
|
||||
break;
|
||||
case CommonToolTipActions.CoSignTransaction:
|
||||
case CommonToolTipActions.SignPSBT:
|
||||
handlePsbtSign(data);
|
||||
} else {
|
||||
onBarScanned(data);
|
||||
}
|
||||
} else {
|
||||
console.log('Unknown selectedDataProcessor:', selectedDataProcessor.current);
|
||||
break;
|
||||
case CommonToolTipActions.ImportTransactionMultsig:
|
||||
_importTransactionMultisig(data);
|
||||
break;
|
||||
default:
|
||||
console.log('Unknown selectedDataProcessor:', selectedDataProcessor.current);
|
||||
}
|
||||
}
|
||||
}
|
||||
setParams({ onBarScanned: undefined });
|
||||
selectedDataProcessor.current = undefined;
|
||||
}, [handlePsbtSign, importQrTransactionOnBarScanned, onBarScanned, routeParams.onBarScanned, setParams, processAddressData]);
|
||||
}, [
|
||||
handlePsbtSign,
|
||||
importQrTransactionOnBarScanned,
|
||||
onBarScanned,
|
||||
routeParams.onBarScanned,
|
||||
setParams,
|
||||
processAddressData,
|
||||
_importTransactionMultisig,
|
||||
]);
|
||||
|
||||
const navigateToQRCodeScanner = () => {
|
||||
navigation.navigate('ScanQRCode', {
|
||||
|
|
Loading…
Add table
Reference in a new issue