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)', backgroundColor: 'rgba(0, 0, 0, 0)',
dataset: { dataset: {
dimensions: ['balance', 'currency', 'est_stake', 'free', 'used', 'stake'], dimensions: ['balance', 'currency', 'est_stake', 'free', 'used', 'stake'],
source: props.currencies, source: props.currencies as unknown[] as Record<string, number>[],
}, },
tooltip: { tooltip: {
trigger: 'item', trigger: 'item',

View File

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