From cf78987fab22e8ad6832c0995f596d34cae81656 Mon Sep 17 00:00:00 2001 From: d11n Date: Sat, 11 Dec 2021 06:31:25 +0100 Subject: [PATCH] Fix LN Node availability check (#3189) --- BTCPayServer/Controllers/PublicLightningNodeInfoController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BTCPayServer/Controllers/PublicLightningNodeInfoController.cs b/BTCPayServer/Controllers/PublicLightningNodeInfoController.cs index b6c615849..cbbd5af20 100644 --- a/BTCPayServer/Controllers/PublicLightningNodeInfoController.cs +++ b/BTCPayServer/Controllers/PublicLightningNodeInfoController.cs @@ -47,7 +47,7 @@ namespace BTCPayServer.Controllers return View(new ShowLightningNodeInfoViewModel { - Available = true, + Available = nodeInfo.Any(), NodeInfo = nodeInfo.Select(n => new ShowLightningNodeInfoViewModel.NodeData(n)).ToArray(), CryptoCode = cryptoCode, CryptoImage = GetImage(paymentMethodDetails.PaymentId, network),