compare pks with .equals
This commit is contained in:
parent
d09b9a4283
commit
009259c35f
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue