diff --git a/src/components/BotList.vue b/src/components/BotList.vue index 8dc12b48..6e58e413 100644 --- a/src/components/BotList.vue +++ b/src/components/BotList.vue @@ -33,7 +33,7 @@ export default class BotList extends Vue { @ftbot.Getter [MultiBotStoreGetters.selectedBot]: string; - @ftbot.Getter [MultiBotStoreGetters.allIsBotOnline]; + @ftbot.Getter [MultiBotStoreGetters.allIsBotOnline]: Record; @ftbot.Getter [MultiBotStoreGetters.allAvailableBots]: BotDescriptors; diff --git a/src/store/modules/botStoreWrapper.ts b/src/store/modules/botStoreWrapper.ts index e37ee5a7..6b7ce1be 100644 --- a/src/store/modules/botStoreWrapper.ts +++ b/src/store/modules/botStoreWrapper.ts @@ -1,4 +1,4 @@ -import { BotDescriptor, BotDescriptors, MultiClosedTrades } from '@/types'; +import { BotDescriptor, BotDescriptors } from '@/types'; import { AxiosInstance } from 'axios'; import { BotStoreActions, BotStoreGetters, createBotSubStore } from './ftbot'; diff --git a/src/types/trades.ts b/src/types/trades.ts index f5580913..bfa5f7c9 100644 --- a/src/types/trades.ts +++ b/src/types/trades.ts @@ -79,7 +79,3 @@ export interface TradeResponse { /** Total trade count */ total_trades: number; } - -export interface MultiClosedTrades { - [key: string]: ClosedTrade; -} diff --git a/src/views/Dashboard.vue b/src/views/Dashboard.vue index a8f88f7c..45eacfe1 100644 --- a/src/views/Dashboard.vue +++ b/src/views/Dashboard.vue @@ -147,7 +147,7 @@ import { ProfitInterface, DailyPayload, BotState, - MultiClosedTrades, + ClosedTrade, } from '@/types'; import { BotStoreGetters } from '@/store/modules/ftbot'; import { MultiBotStoreGetters } from '@/store/modules/botStoreWrapper'; @@ -169,7 +169,7 @@ const layoutNs = namespace('layout'); export default class Dashboard extends Vue { @ftbot.Getter closedTrades!: Trade[]; - @ftbot.Getter [MultiBotStoreGetters.allClosedTrades]!: MultiClosedTrades; + @ftbot.Getter [MultiBotStoreGetters.allClosedTrades]!: Record; @ftbot.Getter [BotStoreGetters.dailyStats]!: DailyReturnValue;