Skip to content

Commit

Permalink
default avatar
Browse files Browse the repository at this point in the history
  • Loading branch information
Ko71k committed Dec 16, 2024
1 parent 7c57b8b commit 587c7d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion public/src/components/Header/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import { endpoint } from "../../config.js"
import { api } from '../../modules/FrontendAPI.js';
import { navigate } from '../../modules/router.js';
import defaultAvatar from '../../assets/images/default_avatar.png';
/**
* Header module.
*
Expand Down Expand Up @@ -125,7 +126,7 @@ export class Header {
})

avatarImage.onerror = function() {
this.src = "/static/images/default_avatar.png";
this.src = defaultAvatar;
this.style.objectFit = 'fill';
};
avatarImage.alt = 'Avatar';
Expand Down

0 comments on commit 587c7d2

Please sign in to comment.