handle zaps in satistics
This commit is contained in:
parent
51299820b9
commit
13926d57da
@ -108,10 +108,15 @@ function Detail ({ fact }) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!fact.item) {
|
if (!fact.item) {
|
||||||
|
let zap
|
||||||
|
try {
|
||||||
|
zap = JSON.parse(fact.zapMessage)
|
||||||
|
} catch { }
|
||||||
return (
|
return (
|
||||||
<div className='px-3'>
|
<div className='px-3'>
|
||||||
<Link className={satusClass(fact.status)} href={`/${fact.type}s/${fact.factId}`}>
|
<Link className={satusClass(fact.status)} href={`/${fact.type}s/${fact.factId}`}>
|
||||||
{fact.description && <span className='d-block'>{fact.description}</span>}
|
{(zap && <span className='d-block'>nostr zap</span>) ||
|
||||||
|
(fact.description && <span className='d-block'>{fact.description}</span>)}
|
||||||
{fact.invoiceComment && <small className='text-muted'>sender says: {fact.invoiceComment}</small>}
|
{fact.invoiceComment && <small className='text-muted'>sender says: {fact.invoiceComment}</small>}
|
||||||
{!fact.invoiceComment && !fact.description && <span className='d-block'>no description</span>}
|
{!fact.invoiceComment && !fact.description && <span className='d-block'>no description</span>}
|
||||||
<Satus status={fact.status} />
|
<Satus status={fact.status} />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user