mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-19 18:00:17 +01:00
FIX: Scan button on Broadcast tool (#6132)
This commit is contained in:
parent
9ac3983894
commit
7d3486f7c1
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user