Skip to content

Commit

Permalink
Update avatarLoader.js
Browse files Browse the repository at this point in the history
There was a duplicate "avatarUrl
  • Loading branch information
MathioLucas authored Dec 19, 2024
1 parent 6aaf36f commit e914381
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/avatarLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ fetch('./avatars.json')
.then(avatars => {
document.querySelectorAll('.vignette').forEach(element => {
const type = element.dataset.type;
const avatarUrl = avatars[type];
const fallbackUrl = 'assets/default-avatar.jpg';
const avatarUrl = avatars[type] || fallbackUrl;

Expand Down

0 comments on commit e914381

Please sign in to comment.