Update logic to new eslint rules

This commit is contained in:
Matthias 2023-07-21 07:30:43 +02:00
parent 206d6babfc
commit a43bab3aa7
3 changed files with 6 additions and 5 deletions

View File

@ -12,7 +12,9 @@
<div class="d-flex flex-row"> <div class="d-flex flex-row">
<b-form-checkbox <b-form-checkbox
v-if="row.item.botId && botStore.botCount > 1" v-if="row.item.botId && botStore.botCount > 1"
v-model="botStore.botStores[(row.item as unknown as ComparisonTableItems).botId ?? ''].isSelected" v-model="
botStore.botStores[(row.item as unknown as ComparisonTableItems).botId ?? ''].isSelected
"
title="Show bot in Dashboard" title="Show bot in Dashboard"
/> />
<span>{{ row.value }}</span> <span>{{ row.value }}</span>

View File

@ -50,9 +50,8 @@ const exchangeList = computed(() => {
}); });
const tradeModesTyped = computed(() => { const tradeModesTyped = computed(() => {
const val = botStore.activeBot.exchangeList.find( const val = botStore.activeBot.exchangeList.find((ex) => ex.name === exchangeModel.value.exchange)
(ex) => ex.name === exchangeModel.value.exchange, ?.trade_modes;
)?.trade_modes;
return val ?? []; return val ?? [];
}); });

View File

@ -60,7 +60,7 @@
{{ row.item.trading_mode !== 'spot' ? `(${row.item.leverage}x)` : '' }} {{ row.item.trading_mode !== 'spot' ? `(${row.item.leverage}x)` : '' }}
</template> </template>
<template #cell(profit)="row"> <template #cell(profit)="row">
<trade-profit :trade="(row.item as unknown as Trade)" /> <trade-profit :trade="row.item as unknown as Trade" />
</template> </template>
<template #cell(open_timestamp)="row"> <template #cell(open_timestamp)="row">
<DateTimeTZ :date="(row.item as unknown as Trade).open_timestamp" /> <DateTimeTZ :date="(row.item as unknown as Trade).open_timestamp" />