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,8 +261,12 @@ async function orderList(path) {
|
||||||
this.search.publicKey === data.customerPubkey
|
this.search.publicKey === data.customerPubkey
|
||||||
) {
|
) {
|
||||||
const orderData = JSON.parse(data.dm.message)
|
const orderData = JSON.parse(data.dm.message)
|
||||||
const order = await this.getOrder(orderData.id)
|
const i = this.orders.map(o => o.id).indexOf(orderData.id)
|
||||||
this.orders.unshift(order)
|
if (i === -1) {
|
||||||
|
const order = await this.getOrder(orderData.id)
|
||||||
|
this.orders.unshift(order)
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
orderSelected: async function (orderId) {
|
orderSelected: async function (orderId) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue