Skip to content

Commit

Permalink
Flip asks before cropping to top 5 and back in debug ui (#289)
Browse files Browse the repository at this point in the history
flip asks before cropping to top 5 and back
  • Loading branch information
brittcyr authored Nov 17, 2024
1 parent 6cc2d6d commit 48b847f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion debug-ui/app/components/Orderbook.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 48b847f

Please sign in to comment.