diff --git a/screen/lnd/LNDViewAdditionalInvoiceInformation.tsx b/screen/lnd/LNDViewAdditionalInvoiceInformation.tsx index 2b84a6c97..78230207f 100644 --- a/screen/lnd/LNDViewAdditionalInvoiceInformation.tsx +++ b/screen/lnd/LNDViewAdditionalInvoiceInformation.tsx @@ -38,14 +38,16 @@ const LNDViewAdditionalInvoiceInformation: React.FC = () => { .fetchInfo() .then(() => { const info = wallet.info_raw; - if (info && info.uris && info.uris[0]) { + // @ts-ignore: idk + if (info?.uris?.[0]) { + // @ts-ignore: idk setWalletInfo(info); } else { presentAlert({ message: loc.errors.network }); goBack(); } }) - .catch(error => { + .catch((error: Error) => { console.error(error); presentAlert({ title: loc.errors.network, message: error.message }); goBack(); @@ -60,11 +62,11 @@ const LNDViewAdditionalInvoiceInformation: React.FC = () => { ) : ( - + {loc.lndViewInvoice.open_direct_channel} - +