From 785a7ebc245341d37954bb0b73574cd2dec08ea5 Mon Sep 17 00:00:00 2001 From: Matthias Date: Tue, 9 Aug 2022 20:43:52 +0200 Subject: [PATCH] Fix order Return type --- src/components/ftbot/TradeDetail.vue | 4 ++-- src/types/trades.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/ftbot/TradeDetail.vue b/src/components/ftbot/TradeDetail.vue index df80e47c..6cd6e0d4 100644 --- a/src/components/ftbot/TradeDetail.vue +++ b/src/components/ftbot/TradeDetail.vue @@ -97,10 +97,10 @@ /> {{ order.ft_order_side }} for {{ formatPrice(order.safe_price) }} | - {{ formatPrice(order.remaining, 8) }} / - {{ formatPrice(order.filled, 8) }} + {{ formatPrice(order.filled ?? 0, 8) }} diff --git a/src/types/trades.ts b/src/types/trades.ts index 6aa68dfa..e91c65cc 100644 --- a/src/types/trades.ts +++ b/src/types/trades.ts @@ -12,9 +12,9 @@ export interface Order extends BTOrder { pair: string; order_id: string; status: string; - remaining: number; + remaining: number | null; cost: number; - filled: number; + filled: number | null; order_type: string; is_open: boolean; order_timestamp?: number;