fix: do not re-add order on invoice re-issue

This commit is contained in:
Vlad Stan 2023-07-05 10:15:23 +03:00
parent d1cdc3cd5c
commit 3d2d8198bc

View file

@ -261,8 +261,12 @@ async function orderList(path) {
this.search.publicKey === data.customerPubkey
) {
const orderData = JSON.parse(data.dm.message)
const order = await this.getOrder(orderData.id)
this.orders.unshift(order)
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) {