From 14cf1eddabcbbaebb40fcd8d27e1560b6eb40c7b Mon Sep 17 00:00:00 2001 From: Veado Date: Tue, 26 Oct 2021 07:38:43 +0200 Subject: [PATCH] Fix 24h volume --- src/renderer/hooks/useVolume24Price.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderer/hooks/useVolume24Price.ts b/src/renderer/hooks/useVolume24Price.ts index abbc7345e..134e96b23 100644 --- a/src/renderer/hooks/useVolume24Price.ts +++ b/src/renderer/hooks/useVolume24Price.ts @@ -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 = () => {