Skip to content

Commit

Permalink
returned correct logic of orderbook on click
Browse files Browse the repository at this point in the history
  • Loading branch information
lzhabo committed Feb 21, 2024
1 parent bed5c4f commit 4ecea64
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ const SpotOrderBookImpl: React.FC<IProps> = 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;
Expand Down

0 comments on commit 4ecea64

Please sign in to comment.