fix: do not re-add order on invoice re-issue
This commit is contained in:
parent
d1cdc3cd5c
commit
3d2d8198bc
1 changed files with 6 additions and 2 deletions
|
|
@ -261,9 +261,13 @@ async function orderList(path) {
|
|||
this.search.publicKey === data.customerPubkey
|
||||
) {
|
||||
const orderData = JSON.parse(data.dm.message)
|
||||
const i = this.orders.map(o => o.id).indexOf(orderData.id)
|
||||
if (i === -1) {
|
||||
const order = await this.getOrder(orderData.id)
|
||||
this.orders.unshift(order)
|
||||
}
|
||||
|
||||
}
|
||||
},
|
||||
orderSelected: async function (orderId) {
|
||||
const order = await this.getOrder(orderId)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue