fix lnurl setter bug

This commit is contained in:
Kukks
2021-10-29 11:27:36 +02:00
parent fc8a5ff95f
commit 3f176a6b6b

View File

@@ -211,7 +211,7 @@ namespace BTCPayServer.Controllers
}
var lnurl = GetExistingLNURLSupportedPaymentMethod(vm.CryptoCode, store);
if (lnurl != null && (
if (lnurl is null || (
lnurl.EnableForStandardInvoices != vm.LNURLStandardInvoiceEnabled ||
lnurl.UseBech32Scheme != vm.LNURLBech32Mode ||
lnurl.LUD12Enabled != vm.LUD12Enabled))