Skip to content

Commit

Permalink
Merge pull request #32546 from kubabutkiewicz/fix/32507
Browse files Browse the repository at this point in the history
Fix/ Chat - WS custom avatar is not updated in chat conversation after request money
  • Loading branch information
mountiny authored Dec 12, 2023
2 parents 62e004b + 2d654e3 commit bd3383d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/ReportUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1211,7 +1211,7 @@ function getDefaultWorkspaceAvatar(workspaceName?: string): React.FC<SvgProps> {

function getWorkspaceAvatar(report: OnyxEntry<Report>): UserUtils.AvatarSource {
const workspaceName = getPolicyName(report, false, allPolicies?.[`${ONYXKEYS.COLLECTION.POLICY}${report?.policyID}`]);
return allPolicies?.[`policy${report?.policyID}`]?.avatar ?? getDefaultWorkspaceAvatar(workspaceName);
return allPolicies?.[`${ONYXKEYS.COLLECTION.POLICY}${report?.policyID}`]?.avatar ?? getDefaultWorkspaceAvatar(workspaceName);
}

/**
Expand Down

0 comments on commit bd3383d

Please sign in to comment.