diff --git a/src/components/Avatar/index.tsx b/src/components/Avatar/index.tsx index 7b852208..56d46c39 100644 --- a/src/components/Avatar/index.tsx +++ b/src/components/Avatar/index.tsx @@ -46,7 +46,6 @@ const Avatar = memo( const isImage = Boolean( avatar && ['/', 'http', 'data:'].some((index) => avatar.startsWith(index)), ); - const isBase64 = Boolean(avatar?.startsWith('data')); const emoji = useMemo(() => avatar && !isImage && getEmoji(avatar), [avatar]); const { styles, cx } = useStyles({ background, isEmoji: Boolean(emoji), size }); @@ -61,12 +60,7 @@ const Avatar = memo( }; return isImage ? ( - + ) : ( {emoji ? : text?.toUpperCase().slice(0, 2)}