add avatar
Gitea Actions Demo / build_and_push (push) Has been cancelled Details

This commit is contained in:
artem 2024-05-09 12:38:35 +03:00
parent c7926d11b5
commit e0a221b80d
1 changed files with 5 additions and 1 deletions

View File

@ -29,9 +29,13 @@ export const useUserStore = defineStore("user", {
if (mm < 10) {
strinMM = '0' + strinMM;
}
let avatar = defaultAvatar;
if (dataAttachments.avatar != null) {
avatar = dataAttachments.avatar.url;
}
const formattedToday = stringDD + '/' + strinMM + '/' + yyyy;
return {
avatar: dataAttachments.avatar.url || defaultAvatar,
avatar: avatar,
profileID: dataProfile.id || "",
userName: dataProfile.first_name || "",
userSurname: dataProfile.surname || "",