bug: zap parsing missing invoice
This commit is contained in:
parent
b71c279a0d
commit
5f0bd9699f
@ -30,10 +30,10 @@ function getInvoice(zap: TaggedRawEvent): InvoiceDetails | undefined {
|
||||
}
|
||||
|
||||
export function parseZap(zapReceipt: TaggedRawEvent): ParsedZap {
|
||||
const invoice = getInvoice(zapReceipt);
|
||||
let innerZapJson = findTag(zapReceipt, "description");
|
||||
if (innerZapJson) {
|
||||
try {
|
||||
const invoice = getInvoice(zapReceipt);
|
||||
if (innerZapJson.startsWith("%")) {
|
||||
innerZapJson = decodeURIComponent(innerZapJson);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user