diff --git a/src/main/modules/ItemPricer.ts b/src/main/modules/ItemPricer.ts index 2ce5f262..8875f23c 100644 --- a/src/main/modules/ItemPricer.ts +++ b/src/main/modules/ItemPricer.ts @@ -797,7 +797,8 @@ class PriceMatcher { } const mod = item.parsedItem.implicitMods[0]; // Implicit mod is the only mod on the item - const ilvl = item.parsedItem.properties.find(({ name }) => name === 'Corpse Level').values[0][0]; // Corpse Level is the only property on the item + const ilvl = item.parsedItem.properties.find(({ name }) => name === 'Corpse Level') + .values[0][0]; // Corpse Level is the only property on the item // Find key by: // 1. Starting with the mod name // 2. Read the ilvl range diff --git a/src/renderer/stores/domain/item.ts b/src/renderer/stores/domain/item.ts index aad7d892..f1e3ba81 100644 --- a/src/renderer/stores/domain/item.ts +++ b/src/renderer/stores/domain/item.ts @@ -205,8 +205,10 @@ export class Item { this.styleModifiers = itemdata.styleModifiers || {}; this.name = itemdata.name.replace('<><><>', '').replace(/<>/g, ''); - if(itemdata.typeLine === 'Filled Coffin') { - this.name += `${itemdata.implicitMods[0]} - L${itemdata.properties?.find(({name}) => name === 'Corpse Level').values[0][0]}`; + if (itemdata.typeLine === 'Filled Coffin') { + this.name += `${itemdata.implicitMods[0]} - L${ + itemdata.properties?.find(({ name }) => name === 'Corpse Level').values[0][0] + }`; } this.itemId = itemdata.id; diff --git a/src/renderer/stores/itemStore.ts b/src/renderer/stores/itemStore.ts index e80a40a9..8534f243 100644 --- a/src/renderer/stores/itemStore.ts +++ b/src/renderer/stores/itemStore.ts @@ -31,7 +31,7 @@ export default class ItemStore { .map((item) => item.toLootTable()) .forEach((item) => { const { quantity, value, totalValue, originalValue, stackSize } = item; - if(stackSize > 0) { + if (stackSize > 0) { let group = grouped.find(({ name }) => name === item.name); if (!group) { group = {