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

Commit

Permalink
Fix 24h volume (#1883)
Browse files Browse the repository at this point in the history
  • Loading branch information
veado authored Oct 26, 2021
1 parent 727484c commit b9687e8
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit b9687e8

Please sign in to comment.