mirror of
https://github.com/joinmarket-webui/jam.git
synced 2026-08-14 12:43:26 +02:00
fix(earn): delay local orderbook checks
This commit is contained in:
parent
c028a5b4ca
commit
0353e745ff
1 changed files with 1 additions and 1 deletions
|
|
@ -85,7 +85,7 @@ export const EarnPage = ({ walletFileName }: EarnPageProps) => {
|
|||
|
||||
const orderbookQuery = useQuery({
|
||||
queryKey: ['orderbook'],
|
||||
queryFn: withQueryDelay(OrderbookApi.fetchOrderbook, { throttle: 210 }),
|
||||
queryFn: withQueryDelay(OrderbookApi.fetchOrderbook, { delayBefore: 1_000 }),
|
||||
enabled: makerRunning && !!currentOffer && !!jmSession?.nickname,
|
||||
refetchInterval: JAM.WAIT_FOR_UPDATE_SESSION_POLLING_INTERVAL,
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue