Skip to content

Commit

Permalink
Merge pull request #33039 from bernhardoj/fix/32513-red-dot-shows-aft…
Browse files Browse the repository at this point in the history
…er-update-ws-avatar

Fix red dot shown on LHN avatar after updating a workspace avatar
  • Loading branch information
stitesExpensify authored Dec 18, 2023
2 parents e011f88 + ac6f8f3 commit 1b091e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/PolicyUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function hasPolicyMemberError(policyMembers: OnyxEntry<PolicyMembers>): boolean
* Check if the policy has any error fields.
*/
function hasPolicyErrorFields(policy: OnyxEntry<Policy>): boolean {
return Object.keys(policy?.errorFields ?? {}).some((fieldErrors) => Object.keys(fieldErrors ?? {}).length > 0);
return Object.values(policy?.errorFields ?? {}).some((fieldErrors) => Object.keys(fieldErrors ?? {}).length > 0);
}

/**
Expand Down

0 comments on commit 1b091e0

Please sign in to comment.