Fix type error

This commit is contained in:
Matthias 2024-01-31 18:13:03 +01:00
parent 139a03f9c6
commit d2d58e37c7

View File

@ -15,11 +15,9 @@
:disabled="tradeModes.length < 2" :disabled="tradeModes.length < 2"
> >
</b-form-select> </b-form-select>
<div class="ms-2"> <b-button class="ms-2 no-min-w" size="sm" @click="botStore.activeBot.getExchangeList">
<b-button size="sm" @click="botStore.activeBot.getExchangeList"> <i-mdi-refresh />
<i-mdi-refresh /> </b-button>
</b-button>
</div>
</div> </div>
</template> </template>
@ -56,7 +54,7 @@ const tradeModesTyped = computed(() => {
return val ?? []; return val ?? [];
}); });
const tradeModes = computed<Record<string, unknown>[]>(() => { const tradeModes = computed(() => {
return tradeModesTyped.value.map((tm) => { return tradeModesTyped.value.map((tm) => {
return ( return (
{ {
@ -64,7 +62,7 @@ const tradeModes = computed<Record<string, unknown>[]>(() => {
value: tm, value: tm,
} ?? [] } ?? []
); );
}) as Record<string, unknown>[]; });
}); });
watch( watch(