Refresh session after order cancelation

This commit is contained in:
ekzyis 2023-12-03 03:18:24 +01:00
parent 3f22f12707
commit e0e745a319
1 changed files with 2 additions and 0 deletions

View File

@ -56,6 +56,8 @@ const cancelOrder = async () => {
const url = '/api/order/' + order.value.Id
await fetch(url, { method: 'DELETE' }).then(() => {
order.value.Status = 'CANCELED'
// update session since we might have more msats now
return session.checkSession()
}).catch(console.error)
}