feat: orders improvements

This commit is contained in:
Vlad Stan 2023-07-12 11:25:16 +03:00
parent edef69c92c
commit 31ef362d34
2 changed files with 9 additions and 4 deletions

View file

@ -11,7 +11,13 @@ async function customerOrders(path) {
},
computed: {
merchantOrders: function () {
return Object.keys(this.orders).map(pubkey => ({ pubkey, orders: this.orders[pubkey].map(this.enrichOrder) }))
return Object.keys(this.orders)
.map(pubkey => ({
pubkey,
profile: this.merchantProfile(pubkey),
orders: this.orders[pubkey].map(this.enrichOrder)
}
))
}
},
methods: {