aboutsummaryrefslogtreecommitdiff
path: root/packages/merchant-backoffice-ui
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2023-11-09 10:01:36 -0300
committerSebastian <sebasjm@gmail.com>2023-11-09 10:01:36 -0300
commit1024665001060b8a33378ff45f12426a1b152f25 (patch)
tree5df2de0538d1c9c40f05f2e2c124e7395aff6526 /packages/merchant-backoffice-ui
parent2e73e89ff29857e070af715b7988c8ec415ba6fd (diff)
downloadwallet-core-1024665001060b8a33378ff45f12426a1b152f25.tar.xz
floor when moving from ms to secs
Diffstat (limited to 'packages/merchant-backoffice-ui')
-rw-r--r--packages/merchant-backoffice-ui/src/hooks/backend.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/merchant-backoffice-ui/src/hooks/backend.ts b/packages/merchant-backoffice-ui/src/hooks/backend.ts
index 054c074f1..8d99546a8 100644
--- a/packages/merchant-backoffice-ui/src/hooks/backend.ts
+++ b/packages/merchant-backoffice-ui/src/hooks/backend.ts
@@ -332,8 +332,8 @@ export function useBackendInstanceRequest(): useBackendInstanceRequestType {
const [endpoint, paid, refunded, wired, searchDate, delta] = args
const date_s =
delta && delta < 0 && searchDate
- ? (searchDate.getTime() / 1000) + 1
- : searchDate !== undefined ? (searchDate.getTime() / 1000) : undefined;
+ ? Math.floor(searchDate.getTime() / 1000) + 1
+ : searchDate !== undefined ? Math.floor(searchDate.getTime() / 1000) : undefined;
const params: any = {};
if (paid !== undefined) params.paid = paid;
if (delta !== undefined) params.delta = delta;