FIX: Scan button on Broadcast tool (#6132)

This commit is contained in:
Daniel Padrino 2024-02-14 21:09:34 -03:00 committed by GitHub
parent 9ac3983894
commit 7d3486f7c1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -22,8 +22,7 @@ import { useTheme } from '../../components/themes';
import Button from '../../components/Button';
import triggerHapticFeedback, { HapticFeedbackTypes } from '../../blue_modules/hapticFeedback';
import SafeArea from '../../components/SafeArea';
const scanqr = require('../../helpers/scan-qr');
import { scanQrHelper } from '../../helpers/scan-qr';
const BROADCAST_RESULT = Object.freeze({
none: 'Input transaction hex',
@ -77,7 +76,7 @@ const Broadcast = () => {
};
const handleQRScan = async () => {
const scannedData = await scanqr(navigate, name);
const scannedData = await scanQrHelper(navigate, name);
if (!scannedData) return;
if (scannedData.indexOf('+') === -1 && scannedData.indexOf('=') === -1 && scannedData.indexOf('=') === -1) {