diff options
author | Özgür Kesim <oec-taler@kesim.org> | 2023-10-06 16:33:23 +0200 |
---|---|---|
committer | Özgür Kesim <oec-taler@kesim.org> | 2023-10-06 16:33:23 +0200 |
commit | ffcb40b464e670bbe9f567e8799b06f0b0e2a172 (patch) | |
tree | 6c3b8f44a60ecfad62a852be9784ffdbbeaccf76 /packages/merchant-backoffice-ui/src/hooks/webhooks.ts | |
parent | fe7b51ef2736edbf04f5bbd9d19f2a2d04baccc2 (diff) | |
parent | 101f62123a7ae2f7bfedbfd861e4f739feaf0006 (diff) |
Merge branch 'master' into age-withdraw
Diffstat (limited to 'packages/merchant-backoffice-ui/src/hooks/webhooks.ts')
-rw-r--r-- | packages/merchant-backoffice-ui/src/hooks/webhooks.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/merchant-backoffice-ui/src/hooks/webhooks.ts b/packages/merchant-backoffice-ui/src/hooks/webhooks.ts index c91fff8b4..ad6bf96e2 100644 --- a/packages/merchant-backoffice-ui/src/hooks/webhooks.ts +++ b/packages/merchant-backoffice-ui/src/hooks/webhooks.ts @@ -93,9 +93,11 @@ export function useInstanceWebhooks( > { const { webhookFetcher } = useBackendInstanceRequest(); + const [pageBefore, setPageBefore] = useState(1); const [pageAfter, setPageAfter] = useState(1); const totalAfter = pageAfter * PAGE_SIZE; + const totalBefore = args?.position ? pageBefore * PAGE_SIZE : 0; const { data: afterData, @@ -120,7 +122,7 @@ export function useInstanceWebhooks( const isReachingEnd = afterData && afterData.data.webhooks.length < totalAfter; - const isReachingStart = false; + const isReachingStart = true; const pagination = { isReachingEnd, |