Skip to content

Commit

Permalink
Update src/pages/ReportAvatar.tsx
Browse files Browse the repository at this point in the history
Co-authored-by: Monil Bhavsar <monilbhavsar25@gmail.com>
  • Loading branch information
nkdengineer and MonilBhavsar authored May 15, 2024
1 parent c911404 commit e602e57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/ReportAvatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function ReportAvatar({report = {} as Report, policies, isLoadingApp = true}: Re
}}
isWorkspaceAvatar
maybeIcon
// In the case of the default workspace avatar, we will use the policy id that will be originalFileName prop to get the color of the avatar.
// In the case of default workspace avatar, originalFileName prop takes policyID as value to get the color of the avatar
originalFileName={policy?.originalFileName ?? policy?.id}
shouldShowNotFoundPage={!report?.reportID && !isLoadingApp}
isLoading={(!report?.reportID || !policy?.id) && !!isLoadingApp}
Expand Down

0 comments on commit e602e57

Please sign in to comment.