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
|
||||
Date.now(),
|
||||
perpOrderType,
|
||||
selectedMarket.reduceOnly,
|
||||
undefined,
|
||||
undefined
|
||||
)
|
||||
|
|
|
@ -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])
|
||||
|
||||
|
|
|
@ -722,6 +722,10 @@ const mangoStore = create<MangoStore>()(
|
|||
})
|
||||
} catch (e) {
|
||||
console.error('Error fetching mango accts', e)
|
||||
} finally {
|
||||
set((state) => {
|
||||
state.mangoAccount.initialLoad = false
|
||||
})
|
||||
}
|
||||
},
|
||||
fetchNfts: async (connection: Connection, ownerPk: PublicKey) => {
|
||||
|
|
Loading…
Reference in New Issue