Add refund badge to invoice lists (#3918)

* Add refund badge to invoice lists

* fix badge
This commit is contained in:
Andrew Camilleri
2022-07-01 06:26:00 +02:00
committed by GitHub
parent 4eabe91cee
commit 0970944ee4
9 changed files with 19 additions and 4 deletions

View File

@@ -41,7 +41,7 @@ namespace BTCPayServer.Data.Payouts.LightningLike
public bool CanHandle(PaymentMethodId paymentMethod)
{
return paymentMethod.PaymentType == LightningPaymentType.Instance &&
return (paymentMethod.PaymentType == LightningPaymentType.Instance || paymentMethod.PaymentType == LNURLPayPaymentType.Instance ) &&
_btcPayNetworkProvider.GetNetwork<BTCPayNetwork>(paymentMethod.CryptoCode)?.SupportLightning is true;
}