Skip to content

Commit 2476c85

Browse files
fix(web): use placeholder avatar for org icon in accept invite card
The org avatar should use the placeholder image, not a minidenticon generated from the org name. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 46d97c1 commit 2476c85

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/web/src/app/redeem/components/acceptInviteCard.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
import { Card, CardHeader, CardTitle, CardContent } from "@/components/ui/card";
44
import { SourcebotLogo } from "@/app/components/sourcebotLogo";
55
import Link from "next/link";
6+
import { Avatar, AvatarImage } from "@/components/ui/avatar";
67
import { UserAvatar } from "@/components/userAvatar";
8+
import placeholderAvatar from "@/public/placeholder_avatar.png";
79
import { ArrowRight, Loader2 } from "lucide-react";
810
import { Button } from "@/components/ui/button";
911
import { useCallback, useState } from "react";
@@ -79,11 +81,9 @@ export const AcceptInviteCard = ({ inviteId, orgName, orgDomain, orgImageUrl, ho
7981
className="w-14 h-14"
8082
/>
8183
<ArrowRight className="w-4 h-4 text-muted-foreground" />
82-
<UserAvatar
83-
email={orgName}
84-
imageUrl={orgImageUrl}
85-
className="w-14 h-14"
86-
/>
84+
<Avatar className="w-14 h-14">
85+
<AvatarImage src={orgImageUrl ?? placeholderAvatar.src} />
86+
</Avatar>
8787
</div>
8888
<Button
8989
className="mt-12 mx-auto w-full"

0 commit comments

Comments
 (0)