mirror of
https://github.com/aljazceru/ditto.git
synced 2026-01-01 04:34:24 +01:00
fix(bolt11): print error
This commit is contained in:
@@ -7,7 +7,8 @@ function getAmount(invoice: string | undefined): string | undefined {
|
||||
try {
|
||||
const decoded = bolt11.decode(invoice);
|
||||
return decoded?.millisatoshis ?? undefined;
|
||||
} catch {
|
||||
} catch (e) {
|
||||
console.log(e);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user