fix reduce only bug; better acct loading; increase ob depth
This commit is contained in:
parent
8736d7991e
commit
23fc84b202
|
@ -296,6 +296,7 @@ const AdvancedTradeForm = () => {
|
||||||
undefined, // maxQuoteQuantity
|
undefined, // maxQuoteQuantity
|
||||||
Date.now(),
|
Date.now(),
|
||||||
perpOrderType,
|
perpOrderType,
|
||||||
|
selectedMarket.reduceOnly,
|
||||||
undefined,
|
undefined,
|
||||||
undefined
|
undefined
|
||||||
)
|
)
|
||||||
|
|
|
@ -204,7 +204,7 @@ const Orderbook = () => {
|
||||||
const isMobile = width ? width < breakpoints.md : false
|
const isMobile = width ? width < breakpoints.md : false
|
||||||
|
|
||||||
const depthArray = useMemo(() => {
|
const depthArray = useMemo(() => {
|
||||||
const bookDepth = !isMobile ? depth : 7
|
const bookDepth = !isMobile ? depth : 9
|
||||||
return Array(bookDepth).fill(0)
|
return Array(bookDepth).fill(0)
|
||||||
}, [isMobile])
|
}, [isMobile])
|
||||||
|
|
||||||
|
|
|
@ -722,6 +722,10 @@ const mangoStore = create<MangoStore>()(
|
||||||
})
|
})
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error('Error fetching mango accts', e)
|
console.error('Error fetching mango accts', e)
|
||||||
|
} finally {
|
||||||
|
set((state) => {
|
||||||
|
state.mangoAccount.initialLoad = false
|
||||||
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
fetchNfts: async (connection: Connection, ownerPk: PublicKey) => {
|
fetchNfts: async (connection: Connection, ownerPk: PublicKey) => {
|
||||||
|
|
Loading…
Reference in New Issue