Skip to content
Snippets Groups Projects
Unverified Commit 87ab15f7 authored by nicolas.dorier's avatar nicolas.dorier
Browse files

Fix crash on Monero/ZCash on invoices list

parent 6bc608c0
No related branches found
No related tags found
No related merge requests found
......@@ -6,12 +6,12 @@
@using BTCPayServer.Services.Altcoins.Monero.UI
@using BTCPayServer.Services.Invoices
@inject DisplayFormatter DisplayFormatter
@model IEnumerable<BTCPayServer.Services.Invoices.PaymentEntity>
@model InvoiceDetailsModel
@inject TransactionLinkProviders TransactionLinkProviders
@inject PaymentMethodHandlerDictionary handlers
@{
var payments = Model.Select(payment =>
var payments = Model.Payments.Select(payment =>
{
if (!handlers.TryGetValue(payment.PaymentMethodId, out var h) || h is not MoneroLikePaymentMethodHandler handler)
return null;
......
......@@ -7,12 +7,12 @@
@using BTCPayServer.Services.Altcoins.Zcash.UI
@using BTCPayServer.Services.Invoices
@inject DisplayFormatter DisplayFormatter
@model IEnumerable<BTCPayServer.Services.Invoices.PaymentEntity>
@model InvoiceDetailsModel
@inject TransactionLinkProviders TransactionLinkProviders
@inject PaymentMethodHandlerDictionary handlers
@{
var payments = Model.Select(payment =>
var payments = Model.Payments.Select(payment =>
{
if (!handlers.TryGetValue(payment.PaymentMethodId, out var h) || h is not ZcashLikePaymentMethodHandler handler)
return null;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment