compare pks with .equals

This commit is contained in:
Tyler Shipe 2021-08-28 14:09:08 -04:00
parent d09b9a4283
commit 009259c35f
1 changed files with 2 additions and 1 deletions

View File

@ -46,7 +46,8 @@ export default function useOrderbook() {
)
useEffect(() => {
if (!mangoGroup || market?.publicKey !== marketConfig?.publicKey) return
if (!mangoGroup || !market?.publicKey.equals(marketConfig?.publicKey))
return
const bids = decodeBook(market, bidInfo)
const asks = decodeBook(market, askInfo)