From 48b847f3e874b0ac32d82064cac98244ec0f9339 Mon Sep 17 00:00:00 2001 From: Britt Cyr Date: Sun, 17 Nov 2024 17:16:47 -0500 Subject: [PATCH] Flip asks before cropping to top 5 and back in debug ui (#289) flip asks before cropping to top 5 and back --- debug-ui/app/components/Orderbook.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debug-ui/app/components/Orderbook.tsx b/debug-ui/app/components/Orderbook.tsx index fcb8075b5..e99791393 100644 --- a/debug-ui/app/components/Orderbook.tsx +++ b/debug-ui/app/components/Orderbook.tsx @@ -50,7 +50,7 @@ const Orderbook = ({ const asks: RestingOrder[] = market.asks(); const bids: RestingOrder[] = market.bids(); setBids(bids.reverse().slice(0, MAX_ORDERS_TO_SHOW)); - setAsks(asks.slice(0, MAX_ORDERS_TO_SHOW)); + setAsks(asks.reverse().slice(0, MAX_ORDERS_TO_SHOW).reverse()); } } catch (e) { console.error('updateOrderbook:', e);