order placement doesnt crash

This commit is contained in:
Tim Olson
2023-10-14 22:06:43 -04:00
parent b699d76073
commit dc23ecdd20
7 changed files with 52 additions and 20 deletions

View File

@@ -30,6 +30,9 @@ export const useStore = defineStore('app', {
helper: (s)=>!s.chain?null:s.chain.helper,
},
actions: {
removePendingOrder(order) {
this.pendingOrders = this.pendingOrders.filter((v) => v !== order)
},
error(title, text, closeable=true) {
this.errors.push({title, text, closeable})
},