diff --git a/js/account/avatar-sandbox-rewrite.js b/js/account/avatar-sandbox-rewrite.js index 2bb04e7..c370075 100644 --- a/js/account/avatar-sandbox-rewrite.js +++ b/js/account/avatar-sandbox-rewrite.js @@ -471,7 +471,7 @@ async function LoadItems() {
${item.name}
- by ${ (item.type !== 'hat' && item.type !== 'tool') ? 'Polytoria' : item.creator.name } + by ${ (["hat", "tool", "face", "torso"].indexOf(item.type) !== -1) ? 'Polytoria' : item.creator.name } Free' : (item.price !== "???") ? 'text-success">$ ' + item.price : 'text-muted">???' } @@ -516,14 +516,14 @@ function LoadWearing() { [...Avatar.items, Avatar.shirt, Avatar.pants, Avatar.torso].filter((x) => x !== undefined).forEach(id => { const Cached = Object.values(ItemCache)[Object.keys(ItemCache).indexOf(id.toString())] if (Cached !== undefined) { - if (Cached.creator === null) { + if (Cached.creator === undefined || Cached.creator === null) { Cached.creator = { id: 1, name: "-" } } - if (Cached.price === null) { Cached.price = "???" } + if (Cached.price === undefined || Cached.price === null) { Cached.price = "???" } const ItemColumn = document.createElement('div') ItemColumn.classList = 'col-auto'