Skip to content

Commit f8d4f39

Browse files
committed
Fix falsy 0 check
1 parent a7b403c commit f8d4f39

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

uma_vasp/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
from uma import (
1010
InMemoryNonceCache,
1111
InMemoryPublicKeyCache,
12-
InvalidSignatureException,
1312
ErrorCode,
1413
PostTransactionCallback,
1514
UmaException,

uma_vasp/sending_vasp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ def _handle_internal_uma_payreq(
515515

516516
amount_receiving_currency = (
517517
payreq_response.payment_info.amount
518-
if payreq_response.payment_info and payreq_response.payment_info.amount
518+
if payreq_response.payment_info and payreq_response.payment_info.amount is not None
519519
else round(amount_as_msats(invoice_data.amount) / 1000)
520520
)
521521

0 commit comments

Comments
 (0)