Do not crash when BTC network not available

fixes #4007
This commit is contained in:
Kukks 2022-08-01 10:44:39 +02:00
parent 4be5eb39ff
commit c53fcde12a
No known key found for this signature in database
GPG key ID: 8E5530D9D1C93097

View file

@ -12,7 +12,7 @@
var network = BTCPayNetworkProvider.GetNetwork<BTCPayNetwork>(cryptoCode);
}
@if (network.SupportLightning) {
@if (network?.SupportLightning is true) {
<li class="list-group-item bg-tile" id="lightning-address-option">
<div class="d-flex align-items-center">
<span class="d-flex flex-wrap flex-fill flex-column flex-sm-row">