mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-03-15 11:59:21 +01:00
FIX: QR recognizer and Cosign PSBT
This commit is contained in:
parent
1b9812a5b6
commit
268a2fe6a2
2 changed files with 1 additions and 3 deletions
|
@ -88,8 +88,7 @@ export const AddressInputScanButton = ({
|
||||||
|
|
||||||
if (getImage) {
|
if (getImage) {
|
||||||
try {
|
try {
|
||||||
const base64Data = getImage.replace(/^data:image\/jpeg;base64,/, '');
|
const base64Data = getImage.replace(/^data:image\/png;base64,/, '');
|
||||||
|
|
||||||
const values = await RNQRGenerator.detect({
|
const values = await RNQRGenerator.detect({
|
||||||
base64: base64Data,
|
base64: base64Data,
|
||||||
});
|
});
|
||||||
|
|
|
@ -809,7 +809,6 @@ const SendDetails = () => {
|
||||||
};
|
};
|
||||||
|
|
||||||
const onBarScanned = (ret: any) => {
|
const onBarScanned = (ret: any) => {
|
||||||
navigation.getParent()?.dispatch(popAction);
|
|
||||||
if (!ret.data) ret = { data: ret };
|
if (!ret.data) ret = { data: ret };
|
||||||
if (ret.data.toUpperCase().startsWith('UR')) {
|
if (ret.data.toUpperCase().startsWith('UR')) {
|
||||||
presentAlert({ title: loc.errors.error, message: 'BC-UR not decoded. This should never happen' });
|
presentAlert({ title: loc.errors.error, message: 'BC-UR not decoded. This should never happen' });
|
||||||
|
|
Loading…
Add table
Reference in a new issue