add avatar
Gitea Actions Demo / build_and_push (push) Successful in 1m4s Details

This commit is contained in:
artem 2024-05-09 12:39:19 +03:00
parent e0a221b80d
commit d9c4d61369
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ export const useUserStore = defineStore("user", {
strinMM = '0' + strinMM;
}
let avatar = defaultAvatar;
if (dataAttachments.avatar != null) {
if (dataAttachments != null && dataAttachments.avatar != null) {
avatar = dataAttachments.avatar.url;
}
const formattedToday = stringDD + '/' + strinMM + '/' + yyyy;