chore: lint fixes

This commit is contained in:
Matthias 2024-07-18 20:15:45 +02:00
parent d99151c578
commit 01efa53e7e
2 changed files with 5 additions and 3 deletions

View File

@ -147,7 +147,7 @@ const dataset = computed((): PairHistory => {
});
const strategyName = computed(() => props.strategy || dataset.value?.strategy || '');
const datasetColumns = computed(() =>
dataset.value ? dataset.value.all_columns ?? dataset.value.columns : [],
dataset.value ? (dataset.value.all_columns ?? dataset.value.columns) : [],
);
const hasDataset = computed(() => dataset.value && dataset.value.data.length > 0);
const isLoadingDataset = computed((): boolean => {

View File

@ -98,8 +98,10 @@ const chartValues = computed<BalanceValues[]>(() => {
: v.balance,
currency: v.currency,
est_stake:
showBotOnly.value && canUseBotBalance.value ? v.est_stake_bot ?? v.est_stake : v.est_stake,
free: showBotOnly.value && canUseBotBalance.value ? v.bot_owned ?? v.free : v.free,
showBotOnly.value && canUseBotBalance.value
? (v.est_stake_bot ?? v.est_stake)
: v.est_stake,
free: showBotOnly.value && canUseBotBalance.value ? (v.bot_owned ?? v.free) : v.free,
used: v.used,
stake: v.stake,
};