Skip to content

Commit 2ec0c24

Browse files
committed
Fix bug initials avatar with Dicebar
1 parent 8986696 commit 2ec0c24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/js/Components/UserAvatar.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const props = defineProps({
1717
})
1818
1919
const avatar = computed(
20-
() => props.avatar ?? `https://avatars.dicebear.com/api/${props.api}/${props.username.replace(/[^a-z0-9]+/i, '-')}.svg`
20+
() => props.avatar ?? `https://api.dicebear.com/7.x/${props.api}/svg?seed=${props.username.replace(/[^a-z0-9]+/i, '-')}`
2121
)
2222
2323
const username = computed(() => props.username)

0 commit comments

Comments
 (0)