Fix remove from multiple acquisitions

This commit is contained in:
2024-05-19 12:19:43 +02:00
parent 27f146b945
commit 400737dab8
4 changed files with 50 additions and 33 deletions

View File

@@ -35,7 +35,7 @@ watch(() => acquiredTypesStore.acquiredTypes, async itms => {
<template>
<div class="mt-4">
<template v-if="items.length > 0">
<AcquisitionResultTable :items="items" @buy="(type, price, buy, sell) => buyModal?.open(type.type, { 'Price': price, 'Buy': buy, 'Sell': sell })" @sell="type => sellModal?.open(type)" />
<AcquisitionResultTable :items="items" @buy="(types, price, buy, sell) => buyModal?.open(types[0].type, { 'Price': price, 'Buy': buy, 'Sell': sell })" @sell="types => sellModal?.open(types)" />
<BuyModal ref="buyModal" />
<SellModal ref="sellModal" />
</template>