From e0e745a31941d71aadd20566c377e2babe0feb09 Mon Sep 17 00:00:00 2001 From: ekzyis Date: Sun, 3 Dec 2023 03:18:24 +0100 Subject: [PATCH] Refresh session after order cancelation --- vue/src/components/OrderRow.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vue/src/components/OrderRow.vue b/vue/src/components/OrderRow.vue index ece290c..392809b 100644 --- a/vue/src/components/OrderRow.vue +++ b/vue/src/components/OrderRow.vue @@ -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) }