fix orderbook render

This commit is contained in:
Adrian Brzeziński 2023-12-28 22:32:27 +01:00
parent 7f9d47cbf3
commit 562395dfee
1 changed files with 1 additions and 2 deletions

View File

@ -66,7 +66,7 @@ const Orderbook = () => {
const { isDesktop } = useViewport()
const [orderbookData, setOrderbookData] = useState<OrderbookData | null>(null)
const currentOrderbookData = useRef<OrderbookL2>()
console.log(isMarketReadyForDecode(market), '@@@@@')
const [baseBank, quoteBank] = useMemo(() => {
const { group } = mangoStore.getState()
if (!market || !group) return [undefined, undefined]
@ -305,7 +305,6 @@ const Orderbook = () => {
connection
.getAccountInfoAndContext(bidsPk)
.then(({ context, value: info }) => {
console.log(isMarketReadyForDecode(market), '@@@@@')
if (!info || !isMarketReadyForDecode(market)) return
const decodedBook = decodeBook(client, market, info, 'bids')
set((state) => {