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 {
|
export function parseZap(zapReceipt: TaggedRawEvent): ParsedZap {
|
||||||
const invoice = getInvoice(zapReceipt);
|
|
||||||
let innerZapJson = findTag(zapReceipt, "description");
|
let innerZapJson = findTag(zapReceipt, "description");
|
||||||
if (innerZapJson) {
|
if (innerZapJson) {
|
||||||
try {
|
try {
|
||||||
|
const invoice = getInvoice(zapReceipt);
|
||||||
if (innerZapJson.startsWith("%")) {
|
if (innerZapJson.startsWith("%")) {
|
||||||
innerZapJson = decodeURIComponent(innerZapJson);
|
innerZapJson = decodeURIComponent(innerZapJson);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user