Skip to content

Commit

Permalink
fix: remove new avatar type
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurell876 committed Nov 15, 2024
1 parent 435bae7 commit aa0b5ff
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export default {
computed: {
avatarData() {
const dicebearAvatar = {
type: 'dicebear',
type: 'url',
content: `https://api.dicebear.com/9.x/${this.form.avatarStyle}/svg?seed=${this.$page.props.auth.user?.name}`,
};
return this.form.avatarStyle ? dicebearAvatar : this.data.default_avatar;
Expand Down
1 change: 0 additions & 1 deletion resources/js/Shared/Avatar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@ defineProps({

<template>
<div v-if="data.type === 'svg'" v-html="data.content" />
<img v-else-if="data.type === 'dicebear'" :src="data.content" alt="avatar" />
<img v-else :class="imgClasses" :src="data.content" alt="avatar" />
</template>

0 comments on commit aa0b5ff

Please sign in to comment.