mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
fix(bolt11): print error
This commit is contained in:
parent
7a29c349e8
commit
c6425ad7ff
1 changed files with 2 additions and 1 deletions
|
|
@ -7,7 +7,8 @@ function getAmount(invoice: string | undefined): string | undefined {
|
||||||
try {
|
try {
|
||||||
const decoded = bolt11.decode(invoice);
|
const decoded = bolt11.decode(invoice);
|
||||||
return decoded?.millisatoshis ?? undefined;
|
return decoded?.millisatoshis ?? undefined;
|
||||||
} catch {
|
} catch (e) {
|
||||||
|
console.log(e);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue