diff --git a/components/invoice.js b/components/invoice.js index b1d1b6b8..36a50525 100644 --- a/components/invoice.js +++ b/components/invoice.js @@ -47,13 +47,14 @@ export function Invoice ({ invoice, onPayment, info, successVerb }) { description={numWithUnits(invoice.satsRequested, { abbreviate: false })} statusVariant={variant} status={status} /> -
- { - setExpired(true) - }} - /> -
+ {!invoice.confirmedAt && +
+ { + setExpired(true) + }} + /> +
} {info &&
{info}
}
{nostr diff --git a/pages/satistics.js b/pages/satistics.js index 2f65423c..2d137553 100644 --- a/pages/satistics.js +++ b/pages/satistics.js @@ -110,12 +110,12 @@ function Detail ({ fact }) { if (!fact.item) { let zap try { - zap = JSON.parse(fact.zapMessage) + zap = JSON.parse(fact.description) } catch { } return (
- {(zap && nostr zap) || + {(zap && nostr zap{zap.content && `: ${zap.content}`}) || (fact.description && {fact.description})} {fact.invoiceComment && sender says: {fact.invoiceComment}} {!fact.invoiceComment && !fact.description && no description}