Refresh session after order cancelation
This commit is contained in:
parent
3f22f12707
commit
e0e745a319
|
@ -56,6 +56,8 @@ const cancelOrder = async () => {
|
||||||
const url = '/api/order/' + order.value.Id
|
const url = '/api/order/' + order.value.Id
|
||||||
await fetch(url, { method: 'DELETE' }).then(() => {
|
await fetch(url, { method: 'DELETE' }).then(() => {
|
||||||
order.value.Status = 'CANCELED'
|
order.value.Status = 'CANCELED'
|
||||||
|
// update session since we might have more msats now
|
||||||
|
return session.checkSession()
|
||||||
}).catch(console.error)
|
}).catch(console.error)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue