fix: 🐛
This commit is contained in:
@@ -27,7 +27,7 @@ export function ZapNotification({
|
|||||||
() => extractZapInfoFromReceipt(notification) ?? ({} as any),
|
() => extractZapInfoFromReceipt(notification) ?? ({} as any),
|
||||||
[notification]
|
[notification]
|
||||||
)
|
)
|
||||||
const { event } = useFetchEvent(eventId)
|
const { event, isFetching } = useFetchEvent(eventId)
|
||||||
|
|
||||||
if (!senderPubkey || !amount) return null
|
if (!senderPubkey || !amount) return null
|
||||||
|
|
||||||
@@ -43,10 +43,12 @@ export function ZapNotification({
|
|||||||
{formatAmount(amount)} {t('sats')}
|
{formatAmount(amount)} {t('sats')}
|
||||||
</div>
|
</div>
|
||||||
{comment && <div className="text-yellow-400 truncate">{comment}</div>}
|
{comment && <div className="text-yellow-400 truncate">{comment}</div>}
|
||||||
|
{eventId && !isFetching && (
|
||||||
<ContentPreview
|
<ContentPreview
|
||||||
className={cn('truncate flex-1 w-0', isNew ? 'font-semibold' : 'text-muted-foreground')}
|
className={cn('truncate flex-1 w-0', isNew ? 'font-semibold' : 'text-muted-foreground')}
|
||||||
event={event}
|
event={event}
|
||||||
/>
|
/>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
<div className="text-muted-foreground shrink-0">
|
<div className="text-muted-foreground shrink-0">
|
||||||
<FormattedTimestamp timestamp={notification.created_at} short />
|
<FormattedTimestamp timestamp={notification.created_at} short />
|
||||||
|
|||||||
Reference in New Issue
Block a user