Fix type issue with chart

This commit is contained in:
Matthias 2023-04-22 14:35:05 +02:00
parent 1653386da9
commit 5378d651e7
2 changed files with 6 additions and 7 deletions

View File

@ -53,7 +53,7 @@ const balanceChartOptions = computed((): EChartsOption => {
backgroundColor: 'rgba(0, 0, 0, 0)',
dataset: {
dimensions: ['balance', 'currency', 'est_stake', 'free', 'used', 'stake'],
source: props.currencies,
source: props.currencies as unknown[] as Record<string, number>[],
},
tooltip: {
trigger: 'item',

View File

@ -1,5 +1,4 @@
export interface BalanceRecords {
[key: string]: string | number;
balance: number;
currency: string;
est_stake: number;
@ -7,11 +6,11 @@ export interface BalanceRecords {
used: number;
stake: string;
// Properties added in v 2.x
// Temporarily disabled to fix type errors
// side: string;
// leverage: number;
// is_position: boolean;
// position: number;
side: string;
leverage: number;
is_position: boolean;
position: number;
bot_managed?: boolean;
}
export interface BalanceInterface {