diff options
Diffstat (limited to 'lib/payments.ts')
| -rw-r--r-- | lib/payments.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/payments.ts b/lib/payments.ts index 07004fa2..24eed057 100644 --- a/lib/payments.ts +++ b/lib/payments.ts @@ -521,8 +521,10 @@ export const sendLightning = async ({ if (typeof amount !== "undefined") { amount = parseInt(amount); - if (amount < 0 || amount > SATS || Number.isNaN(amount)) + if (amount < 0 || amount > SATS || Number.isNaN(amount)) { + warn("invalid amount", amount); fail("Invalid amount"); + } } let { type, invoice_amount_msat, amount_msat, invoice_node_id, payee } = |
