diff --git a/src/components/Members/Avatar.tsx b/src/components/Members/Avatar.tsx
index 618e22c..87d78cd 100644
--- a/src/components/Members/Avatar.tsx
+++ b/src/components/Members/Avatar.tsx
@@ -1,14 +1,21 @@
import type { UsersResponse } from "../../types/pb_types";
-export default function Avatar({author}: {author: UsersResponse}) {
- console.log(author);
- if (!author) return null;
- const avatarUrl = import.meta.env.PUBLIC_PB_API + `/api/files/${author.collectionId}/${author.id}/${author.avatar}?thumb=100x100`;
+type AvatarProps = {
+ avatarUrl?: string;
+ firstName: string;
+ lastName: string;
+}
+
+export default function Avatar({avatarUrl, firstName, lastName}: AvatarProps) {
+ if (avatarUrl !== undefined) {
+ return (
+
+ )
+ }
+
+ const avatar = `https://api.dicebear.com/7.x/adventurer/svg?flip=true&seed=${firstName}+${lastName}`;
return (
-
{author.firstname} {author.lastname}
-