diff --git a/src/Server.UI/Pages/Participants/Components/CaseSummary.razor.cs b/src/Server.UI/Pages/Participants/Components/CaseSummary.razor.cs index 551b4d38..8be6bdb9 100644 --- a/src/Server.UI/Pages/Participants/Components/CaseSummary.razor.cs +++ b/src/Server.UI/Pages/Participants/Components/CaseSummary.razor.cs @@ -40,8 +40,11 @@ void SetRiskDueWarning() { if (ParticipantSummaryDto.RiskDue.HasValue) { - _riskInfo = DateOnly.FromDateTime(ParticipantSummaryDto.RiskDue!.Value!).Humanize(); - _riskTooltipText = String.Format("Due {0}", DateOnly.FromDateTime(ParticipantSummaryDto.RiskDue!.Value!)); + var datePart = ParticipantSummaryDto.RiskDue.Value.Date; + + _riskInfo = datePart.Humanize(); + _riskTooltipText = String.Format("Due {0}", DateOnly.FromDateTime(datePart)); + int _dueInDays = ParticipantSummaryDto.RiskDueInDays!.Value!; switch (_dueInDays) { diff --git a/src/Server.UI/Pages/Participants/Participant.razor b/src/Server.UI/Pages/Participants/Participant.razor index a298f808..5d6b2709 100644 --- a/src/Server.UI/Pages/Participants/Participant.razor +++ b/src/Server.UI/Pages/Participants/Participant.razor @@ -187,7 +187,10 @@ { if (_participant!.RiskDue.HasValue) { - _riskInfo = String.Format("Due {0}", DateOnly.FromDateTime(_participant!.RiskDue!.Value).Humanize()); + var datePart = _participant.RiskDue.Value.Date; + + _riskInfo = $"Due {datePart.Humanize()}"; + int _dueInDays = _participant!.RiskDueInDays!.Value; switch (_dueInDays) {