mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-22 06:52:41 +01:00
Update scanLndInvoice.js
This commit is contained in:
parent
35a3676f17
commit
c7a28f703c
1 changed files with 1 additions and 2 deletions
|
@ -148,7 +148,6 @@ const ScanLndInvoice = () => {
|
|||
};
|
||||
|
||||
const processInvoice = data => {
|
||||
data = data.data ? data.data : data;
|
||||
if (Lnurl.isLnurl(data)) return processLnurlPay(data);
|
||||
if (Lnurl.isLightningAddress(data)) return processLnurlPay(data);
|
||||
setParams({ uri: data });
|
||||
|
@ -324,7 +323,7 @@ const ScanLndInvoice = () => {
|
|||
text = text.trim();
|
||||
setDestination(text);
|
||||
}}
|
||||
onBarScanned={processInvoice}
|
||||
onBarScanned={data => processTextForInvoice(data.data)}
|
||||
address={destination}
|
||||
isLoading={isLoading}
|
||||
placeholder={loc.lnd.placeholder}
|
||||
|
|
Loading…
Add table
Reference in a new issue