From 4ecea64d34e117e7f5faf97c0a0631a5b4e39aff Mon Sep 17 00:00:00 2001 From: lzhabo <52199564+lzhabo@users.noreply.github.com> Date: Wed, 21 Feb 2024 11:36:31 +0000 Subject: [PATCH] returned correct logic of orderbook on click --- .../SpotOrderBook/SpotOrderBookImpl.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spark-frontend/src/screens/TradeScreen/OrderbookAndTradesInterface/SpotOrderBook/SpotOrderBookImpl.tsx b/spark-frontend/src/screens/TradeScreen/OrderbookAndTradesInterface/SpotOrderBook/SpotOrderBookImpl.tsx index 5cbf05cc..c2d12b18 100644 --- a/spark-frontend/src/screens/TradeScreen/OrderbookAndTradesInterface/SpotOrderBook/SpotOrderBookImpl.tsx +++ b/spark-frontend/src/screens/TradeScreen/OrderbookAndTradesInterface/SpotOrderBook/SpotOrderBookImpl.tsx @@ -94,7 +94,7 @@ const SpotOrderBookImpl: React.FC = observer(() => { }; const renderOrders = (orders: SpotMarketOrder[], type: "sell" | "buy") => { - const orderMode = type === "buy" ? ORDER_MODE.BUY : ORDER_MODE.SELL; + const orderMode = type === "sell" ? ORDER_MODE.BUY : ORDER_MODE.SELL; const volumePercent = (ord: SpotMarketOrder) => type === "sell" ? ord.baseSize.div(vm.totalSell) : ord.quoteSize.div(vm.totalBuy); const color = type === "sell" ? theme.colors.redLight : theme.colors.greenLight;