diff --git a/src/Savings.SPA/Pages/Projection.razor.cs b/src/Savings.SPA/Pages/Projection.razor.cs index c00e1ed..2b416c5 100644 --- a/src/Savings.SPA/Pages/Projection.razor.cs +++ b/src/Savings.SPA/Pages/Projection.razor.cs @@ -52,7 +52,11 @@ async Task InitializeList() if (HidePastItems) { - materializedMoneyItems= materializedMoneyItems.Where(x=>x.Date>=DateTime.Now.Date).ToArray(); + var lastBeforeToday = materializedMoneyItems.LastOrDefault(x => x.Date <= DateTime.Now.Date); + if (lastBeforeToday != null) + { + materializedMoneyItems = materializedMoneyItems[Array.IndexOf(materializedMoneyItems, lastBeforeToday)..]; + } } }