diff --git a/components/trade/AdvancedTradeForm.tsx b/components/trade/AdvancedTradeForm.tsx index 27701ff7..d60f0790 100644 --- a/components/trade/AdvancedTradeForm.tsx +++ b/components/trade/AdvancedTradeForm.tsx @@ -296,6 +296,7 @@ const AdvancedTradeForm = () => { undefined, // maxQuoteQuantity Date.now(), perpOrderType, + selectedMarket.reduceOnly, undefined, undefined ) diff --git a/components/trade/Orderbook.tsx b/components/trade/Orderbook.tsx index 87499463..acd12f42 100644 --- a/components/trade/Orderbook.tsx +++ b/components/trade/Orderbook.tsx @@ -204,7 +204,7 @@ const Orderbook = () => { const isMobile = width ? width < breakpoints.md : false const depthArray = useMemo(() => { - const bookDepth = !isMobile ? depth : 7 + const bookDepth = !isMobile ? depth : 9 return Array(bookDepth).fill(0) }, [isMobile]) diff --git a/store/mangoStore.ts b/store/mangoStore.ts index 6a2e7f56..2c95298e 100644 --- a/store/mangoStore.ts +++ b/store/mangoStore.ts @@ -722,6 +722,10 @@ const mangoStore = create()( }) } catch (e) { console.error('Error fetching mango accts', e) + } finally { + set((state) => { + state.mangoAccount.initialLoad = false + }) } }, fetchNfts: async (connection: Connection, ownerPk: PublicKey) => {