From de036162bc76ee957ad096679cb626f4625084ec Mon Sep 17 00:00:00 2001 From: Victor Date: Mon, 23 Oct 2023 18:24:40 -0400 Subject: [PATCH] corrected comments --- src/app/redux/orderBookSlice.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/app/redux/orderBookSlice.ts b/src/app/redux/orderBookSlice.ts index c745ae32..eec8c3e6 100644 --- a/src/app/redux/orderBookSlice.ts +++ b/src/app/redux/orderBookSlice.ts @@ -39,9 +39,6 @@ export function toOrderBookRowProps( side: "sell" | "buy", grouping: number ): OrderBookRowProps[] { - // this will drop the rows that do not fit into 8 buys/sells - // TODO: implement pagination or scrolling - const props: OrderBookRowProps[] = []; let adexRows = [...adexOrderbookLines]; // copy the array so we can mutate it @@ -79,7 +76,7 @@ export function toOrderBookRowProps( } } if (groupedArray != null) { - adexRows = groupedArray.slice(0, 11); //adexRows.slice(0, 11); // Limit to 8 rows + adexRows = groupedArray.slice(0, 11); //adexRows.slice(0, 11); // Limit to 11 rows } else { adexRows = adexRows.slice(0, 11); } @@ -103,7 +100,7 @@ export function toOrderBookRowProps( props[i].maxTotal = maxTotal; } - // If there are fewer than 8 orders, fill the remaining rows with empty values + // If there are fewer than 11 orders, fill the remaining rows with empty values while (props.length < 11) { props.push({ absentOrders: "\u00A0" }); }