FIX: QR recognizer and Cosign PSBT

This commit is contained in:
Marcos Rodriguez Velez 2024-12-16 14:45:16 -04:00
parent 1b9812a5b6
commit 268a2fe6a2
2 changed files with 1 additions and 3 deletions

View file

@ -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,
}); });

View file

@ -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' });