fix: typo in phoenixd wallet (#2473)

Co-authored-by: Vlad Stan <stan.v.vlad@gmail.com>
Co-authored-by: Pavol Rusnak <pavol@rusnak.io>
This commit is contained in:
Tiago Vasconcelos 2024-05-03 17:49:09 +01:00 committed by GitHub
parent c3d37a460c
commit 0076a85fdb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -216,7 +216,10 @@ class PhoenixdWallet(Wallet):
while settings.lnbits_running:
message = await ws.recv()
message_json = json.loads(message)
if message_json and message_json["type"] == "payment-received":
if (
message_json
and message_json.get("type") == "payment_received"
):
logger.info(
f'payment-received: {message_json["paymentHash"]}'
)