fix: 🐛

This commit is contained in:
codytseng
2025-04-26 09:37:47 +08:00
parent eb8fe17ae6
commit f5f34e31fa
2 changed files with 7 additions and 4 deletions

View File

@@ -419,6 +419,7 @@ export function extractZapInfoFromReceipt(receiptEvent: Event) {
let senderPubkey: string | undefined
let recipientPubkey: string | undefined
let originalEventId: string | undefined
let eventId: string | undefined
let invoice: string | undefined
let amount: number | undefined
@@ -436,6 +437,7 @@ export function extractZapInfoFromReceipt(receiptEvent: Event) {
recipientPubkey = tagValue
break
case 'e':
originalEventId = tag[1]
eventId = generateEventIdFromETag(tag)
break
case 'bolt11':
@@ -467,6 +469,7 @@ export function extractZapInfoFromReceipt(receiptEvent: Event) {
senderPubkey,
recipientPubkey,
eventId,
originalEventId,
invoice,
amount,
comment,