Skip to content
This repository has been archived by the owner on Oct 10, 2023. It is now read-only.

Fix 24h volume #1883

Merged
merged 1 commit into from
Oct 26, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/renderer/hooks/useVolume24Price.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ export const useVolume24Price = () => {
const swapHistory$ = () =>
FP.pipe(
reloadHistory$,
RxOp.switchMap((_) => apiGetSwapHistory$({ interval: GetSwapHistoryIntervalEnum.Day, count: 1 }))
RxOp.switchMap((_) => apiGetSwapHistory$({ interval: GetSwapHistoryIntervalEnum.Day, count: 2 }))
)

const liquidityHistory$ = () =>
FP.pipe(
reloadHistory$,
RxOp.switchMap((_) => apiGetLiquidityHistory$({ interval: GetLiquidityHistoryIntervalEnum.Day, count: 1 }))
RxOp.switchMap((_) => apiGetLiquidityHistory$({ interval: GetLiquidityHistoryIntervalEnum.Day, count: 2 }))
)

const reloadVolume24Price = () => {
Expand Down