MH: SupportConcept Farben Doublecheck

This commit is contained in:
2023-10-25 14:48:22 +02:00
parent 631cc16144
commit 970358bfbb

View File

@@ -199,7 +199,7 @@ namespace BS.Shared.DataContracts.Compact
{
if (this.IsAboutToExpire)
{
if (this.ExpiredBrush.IsNullOrEmpty())
if (this.ExpiredBrush == null || this.ExpiredBrush.IsNullOrEmpty())
return Brushes.Red;
Color color = (Color)ColorConverter.ConvertFromString(this.ExpiredBrush);
@@ -207,7 +207,7 @@ namespace BS.Shared.DataContracts.Compact
}
else if (this.ExpiresIn3MonthOrLess)
{
if (this.NearlyExpiredBrush.IsNullOrEmpty())
if (this.NearlyExpiredBrush == null || this.NearlyExpiredBrush.IsNullOrEmpty())
return Brushes.Yellow;
Color color = (Color)ColorConverter.ConvertFromString(this.NearlyExpiredBrush);