diff --git a/js/account/avatar-sandbox.js b/js/account/avatar-sandbox.js index b8b00d6..1f711e0 100644 --- a/js/account/avatar-sandbox.js +++ b/js/account/avatar-sandbox.js @@ -602,6 +602,10 @@ async function LoadItems() { document.getElementById('inventory').classList.add('itemgrid') if (TabSelected !== 'outfit') { Items.assets.forEach(item => { + if (item.price === null) { + item.price = false + } + const ItemColumn = document.createElement('div') ItemColumn.classList = 'col-auto' ItemColumn.innerHTML = ` @@ -643,14 +647,6 @@ async function LoadItems() { asset: undefined } - if (item.price === 0) { - if (item.sales === 0) { - ItemCache[item.id].price = null - } else { - ItemCache[item.id].price = 0 - } - } - if (item.type === 'hat') { ItemCache[item.id].accessoryType = item.accessoryType }