Skip to content

Commit

Permalink
Fix TS issue
Browse files Browse the repository at this point in the history
  • Loading branch information
kearfy committed Dec 21, 2023
1 parent 3fb1fb8 commit 483dc12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/cards/avatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export function Avatar({
{avatarFallback}
</AvatarFallback>
</RenderAvatar>
{renderBadge && profile.type == 'admin' && (
{renderBadge && 'type' in profile && profile.type == 'admin' && (
<TooltipProvider>
<Tooltip>
<TooltipTrigger asChild>
Expand Down

0 comments on commit 483dc12

Please sign in to comment.