From c53fcde12acb2d2a2b3d221c114cd12543605c89 Mon Sep 17 00:00:00 2001 From: Kukks Date: Mon, 1 Aug 2022 10:44:39 +0200 Subject: [PATCH] Do not crash when BTC network not available fixes #4007 --- BTCPayServer/Views/Shared/LNURL/LightningAddressOption.cshtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BTCPayServer/Views/Shared/LNURL/LightningAddressOption.cshtml b/BTCPayServer/Views/Shared/LNURL/LightningAddressOption.cshtml index 3218afee1..117e19494 100644 --- a/BTCPayServer/Views/Shared/LNURL/LightningAddressOption.cshtml +++ b/BTCPayServer/Views/Shared/LNURL/LightningAddressOption.cshtml @@ -12,7 +12,7 @@ var network = BTCPayNetworkProvider.GetNetwork(cryptoCode); } -@if (network.SupportLightning) { +@if (network?.SupportLightning is true) {