diff --git a/gather/src/items/Part.js b/gather/src/items/Part.js index a1db718..f222fde 100644 --- a/gather/src/items/Part.js +++ b/gather/src/items/Part.js @@ -10,6 +10,10 @@ module.exports = class Part { async getPrice () { const orders = await Api.getSortedOrders(this.urlPath) + if (orders.length === 0) { + return 0 + } + return Number(orders[0].platinum) * this.amount } }