diff --git a/src/plugins/user/components/Widget.vue b/src/plugins/user/components/Widget.vue
index 1ef7771..26aeae0 100644
--- a/src/plugins/user/components/Widget.vue
+++ b/src/plugins/user/components/Widget.vue
@@ -4,7 +4,7 @@
-
+
@@ -43,6 +43,10 @@ export default defineComponent({
const name = ref(mainStore.currentUser.firstname);
const avatarLink = ref(mainStore.currentUser.avatar_url);
+ function error() {
+ avatar.value = false;
+ }
+
function userHasBirthday(user: FG.User) {
const today = new Date();
return (
@@ -62,7 +66,7 @@ export default defineComponent({
.filter((user) => user.userid !== mainStore.currentUser.userid)
);
- return { avatar, avatarLink, name, hasBirthday, birthday };
+ return { avatar, avatarLink, error, name, hasBirthday, birthday };
},
});