Skip to content

Commit 2b7450d

Browse files
authored
Merge pull request #31 from aremesal/fix-initials-avatar
Fix bug initials avatar with Dicebar
2 parents 8986696 + 7c7801e commit 2b7450d

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)