diff --git a/lnbits/extensions/splitpayments/tasks.py b/lnbits/extensions/splitpayments/tasks.py index a1832b63..33768805 100644 --- a/lnbits/extensions/splitpayments/tasks.py +++ b/lnbits/extensions/splitpayments/tasks.py @@ -38,7 +38,7 @@ async def on_invoice_paid(payment: Payment) -> None: logger.debug(f"checking if tagged for {len(targets)} targets") tagged = False for target in targets: - if payment.extra.get("tag") == target.tag: + if target.tag in payment.extra: tagged = True payment_hash, payment_request = await create_invoice( wallet_id=target.wallet,