diff options
author | Sebastian <sebasjm@gmail.com> | 2023-01-03 10:01:04 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-01-03 10:01:04 -0300 |
commit | 9ad1f2712a92d58804e090a7c3dd4cc0a41ee1d9 (patch) | |
tree | 51ea688742936faece5c5055bc2b66dbf501782d /packages/merchant-backoffice-ui/src/hooks/transfer.ts | |
parent | a2668c22f0d18386fc988f27299172145d9fa15d (diff) | |
download | wallet-core-9ad1f2712a92d58804e090a7c3dd4cc0a41ee1d9.tar.xz |
pretty
Diffstat (limited to 'packages/merchant-backoffice-ui/src/hooks/transfer.ts')
-rw-r--r-- | packages/merchant-backoffice-ui/src/hooks/transfer.ts | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/packages/merchant-backoffice-ui/src/hooks/transfer.ts b/packages/merchant-backoffice-ui/src/hooks/transfer.ts index c827772e4..b86247476 100644 --- a/packages/merchant-backoffice-ui/src/hooks/transfer.ts +++ b/packages/merchant-backoffice-ui/src/hooks/transfer.ts @@ -141,9 +141,10 @@ export function useInstanceTransfers( if (afterData.data.transfers.length < MAX_RESULT_SIZE) { setPageAfter(pageAfter + 1); } else { - const from = `${afterData.data.transfers[afterData.data.transfers.length - 1] + const from = `${ + afterData.data.transfers[afterData.data.transfers.length - 1] .transfer_serial_id - }`; + }`; if (from && updatePosition) updatePosition(from); } }, @@ -152,9 +153,10 @@ export function useInstanceTransfers( if (beforeData.data.transfers.length < MAX_RESULT_SIZE) { setPageBefore(pageBefore + 1); } else if (beforeData) { - const from = `${beforeData.data.transfers[beforeData.data.transfers.length - 1] + const from = `${ + beforeData.data.transfers[beforeData.data.transfers.length - 1] .transfer_serial_id - }`; + }`; if (from && updatePosition) updatePosition(from); } }, @@ -164,9 +166,9 @@ export function useInstanceTransfers( !beforeData || !afterData ? [] : (beforeData || lastBefore).data.transfers - .slice() - .reverse() - .concat((afterData || lastAfter).data.transfers); + .slice() + .reverse() + .concat((afterData || lastAfter).data.transfers); if (loadingAfter || loadingBefore) return { loading: true, data: { transfers } }; if (beforeData && afterData) { |