fix reduce only bug; better acct loading; increase ob depth

This commit is contained in:
tjs 2023-01-16 16:09:15 -05:00
parent 8736d7991e
commit 23fc84b202
3 changed files with 6 additions and 1 deletions

View File

@ -296,6 +296,7 @@ const AdvancedTradeForm = () => {
undefined, // maxQuoteQuantity
Date.now(),
perpOrderType,
selectedMarket.reduceOnly,
undefined,
undefined
)

View File

@ -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])

View File

@ -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) => {