fix(trading): lp data provider reload - updating book

This commit is contained in:
Madalina Raicu 2024-02-22 14:39:31 +00:00
parent c4a56e0de3
commit aebf956e00
No known key found for this signature in database
GPG Key ID: 688B7B31149C1DCD

View File

@ -4,7 +4,6 @@ import {
lpAggregatedDataProvider,
type Filter,
LiquidityTable,
liquidityProvisionsDataProvider,
} from '@vegaprotocol/liquidity';
import { getAsset, useMarket } from '@vegaprotocol/markets';
import {
@ -71,7 +70,7 @@ export const LiquidityContainer = ({
const useReloadLiquidityData = (marketId: string | undefined) => {
const { reload } = useDataProvider({
dataProvider: liquidityProvisionsDataProvider,
dataProvider: lpAggregatedDataProvider,
variables: { marketId: marketId || '' },
update: () => true,
skip: !marketId,