fix clicking on p2p in satistics
This commit is contained in:
parent
71b639be5d
commit
11ac605cd9
|
@ -131,9 +131,11 @@ function Detail ({ fact }) {
|
||||||
try {
|
try {
|
||||||
zap = JSON.parse(fact.description)
|
zap = JSON.parse(fact.description)
|
||||||
} catch { }
|
} catch { }
|
||||||
|
|
||||||
|
const pathRoot = fact.type === 'p2p' ? 'withdrawal' : fact.type
|
||||||
return (
|
return (
|
||||||
<div className='px-3'>
|
<div className='px-3'>
|
||||||
<Link className={satusClass(fact.status)} href={`/${fact.type}s/${fact.id}`}>
|
<Link className={satusClass(fact.status)} href={`/${pathRoot}s/${fact.id}`}>
|
||||||
{(!fact.bolt11 && <span className='d-block text-muted fw-bold fst-italic'>invoice deleted</span>) ||
|
{(!fact.bolt11 && <span className='d-block text-muted fw-bold fst-italic'>invoice deleted</span>) ||
|
||||||
(zap && <span className='d-block'>nostr zap{zap.content && `: ${zap.content}`}</span>) ||
|
(zap && <span className='d-block'>nostr zap{zap.content && `: ${zap.content}`}</span>) ||
|
||||||
(fact.description && <span className='d-block'>{fact.description}</span>)}
|
(fact.description && <span className='d-block'>{fact.description}</span>)}
|
||||||
|
|
Loading…
Reference in New Issue