This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user