diff --git a/MoneyMap/Pages/Receipts.cshtml.cs b/MoneyMap/Pages/Receipts.cshtml.cs index b94b907..2fe8e6c 100644 --- a/MoneyMap/Pages/Receipts.cshtml.cs +++ b/MoneyMap/Pages/Receipts.cshtml.cs @@ -171,10 +171,12 @@ namespace MoneyMap.Pages }).ToList(); // Load matching transactions for each unmapped receipt - var transactionsWithReceipts = await _db.Receipts + var transactionsWithReceiptsList = await _db.Receipts .Where(r => r.TransactionId != null) .Select(r => r.TransactionId!.Value) - .ToHashSet(); + .ToListAsync(); + + var transactionsWithReceipts = new HashSet(transactionsWithReceiptsList); var unmappedReceipts = Receipts.Where(r => !r.TransactionId.HasValue).ToList();