From 441761e1f2c4d8d89cdf11403aee2507a2d5cb7a Mon Sep 17 00:00:00 2001 From: Rob Relyea Date: Wed, 21 Jun 2023 12:30:18 -0700 Subject: [PATCH] mutual funds price changes from yesterday, shouldn't be part of value change --- Pages/Portfolio.razor | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Pages/Portfolio.razor b/Pages/Portfolio.razor index a403f73..4830d34 100644 --- a/Pages/Portfolio.razor +++ b/Pages/Portfolio.razor @@ -1073,8 +1073,15 @@ Portfolio@(stepPath==null?": review":": "+stepPath.Replace('-',' ')) - bogle.too if (quoteData?.Close != null) { foreach (var investment in investments) { investment.Price = quoteData.Close; - investment.PreviousClose = quoteData.PreviousClose; - investment.PercentChange = quoteData.ChangeP; + if (quoteData.Volume == 0) { + investment.PreviousClose = quoteData.Close; + investment.PercentChange = null; + } + else + { + investment.PreviousClose = quoteData.PreviousClose; + investment.PercentChange = quoteData.ChangeP; + } if (quoteData.Timestamp != null) { investment.LastUpdated = UnixTimeStampToDateTime(quoteData.Timestamp); }