Update lndViewInvoice.js

This commit is contained in:
marcosrdz 2020-11-24 22:05:36 -05:00
parent be5927897a
commit a9e6a93321

View file

@ -234,7 +234,7 @@ const LNDViewInvoice = () => {
</View>
);
}
if (invoiceExpiration < now && !invoice.ispaid) {
if (invoiceExpiration < now) {
return (
<View>
<View style={[styles.expired, stylesHook.expired]}>
@ -249,7 +249,7 @@ const LNDViewInvoice = () => {
<View style={[styles.activeRoot, stylesHook.root]}>
<View style={styles.activeQrcode}>
<QRCode
value={typeof invoice === 'object' ? invoice.payment_request : invoice}
value={invoice.payment_request}
logo={require('../../img/qr-code.png')}
size={qrCodeHeight}
logoSize={90}
@ -263,7 +263,7 @@ const LNDViewInvoice = () => {
<BlueText>
{loc.lndViewInvoice.please_pay} {invoice.amt} {loc.lndViewInvoice.sats}
</BlueText>
{invoice && 'description' in invoice && invoice.description.length > 0 && (
{invoice !== undefined && 'description' in invoice && invoice.description.length > 0 && (
<BlueText>
{loc.lndViewInvoice.for} {invoice.description}
</BlueText>