Fix new store incorrectly showing lightning enabled even if not

This commit is contained in:
nicolas.dorier 2021-03-09 17:56:17 +09:00
parent a64e304d16
commit 1fcf39d4ab
No known key found for this signature in database
GPG key ID: 6618763EF09186FE

View file

@ -547,7 +547,7 @@ namespace BTCPayServer.Controllers
{
CryptoCode = paymentMethodId.CryptoCode,
Address = lightning?.GetDisplayableConnectionString(),
Enabled = !excludeFilters.Match(paymentMethodId)
Enabled = !excludeFilters.Match(paymentMethodId) && lightning != null
});
break;
}