From 34034829b4a4eaba2660aa4a74ce6dfa471d9b8d Mon Sep 17 00:00:00 2001 From: Addison Beck Date: Thu, 24 Sep 2020 11:47:57 -0400 Subject: [PATCH] fixed faulty conditional logic for showing enabled policy labels (#952) --- bitwarden_license/src/Portal/Models/PoliciesModel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitwarden_license/src/Portal/Models/PoliciesModel.cs b/bitwarden_license/src/Portal/Models/PoliciesModel.cs index 9987dcd999..e27c8533cd 100644 --- a/bitwarden_license/src/Portal/Models/PoliciesModel.cs +++ b/bitwarden_license/src/Portal/Models/PoliciesModel.cs @@ -20,7 +20,7 @@ namespace Bit.Portal.Models foreach (var type in Enum.GetValues(typeof(PolicyType)).Cast()) { - var enabled = policyDict?.ContainsKey(type) ?? false && policyDict[type].Enabled; + var enabled = policyDict.ContainsKey(type) ? policyDict[type].Enabled : false; Policies.Add(new PolicyModel(type, enabled)); } }