mirror of
https://github.com/lukevella/rallly.git
synced 2025-04-29 02:06:34 +02:00
🐛 Handle data uri as user avatar (#1621)
This commit is contained in:
parent
19cfd33d66
commit
3e4b0f8a3d
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ export function OptimizedAvatarImage({
|
|||
style={{ width: sizeToWidth[size], height: sizeToWidth[size] }}
|
||||
>
|
||||
{src ? (
|
||||
src.startsWith("https") ? (
|
||||
src.startsWith("https") || src.startsWith("data:") ? (
|
||||
<AvatarImage src={src} alt={name} />
|
||||
) : (
|
||||
<Image
|
||||
|
|
Loading…
Add table
Reference in a new issue