diff --git a/packages/wallet/backend/src/transaction/service.ts b/packages/wallet/backend/src/transaction/service.ts index 30e24ab03..0b0f763c1 100644 --- a/packages/wallet/backend/src/transaction/service.ts +++ b/packages/wallet/backend/src/transaction/service.ts @@ -130,7 +130,7 @@ export class TransactionService implements ITransactionService { return } - const page = 1 + let page = 1 const pageSize = 10 let shouldFetchNext = true while (shouldFetchNext) { @@ -153,6 +153,7 @@ export class TransactionService implements ITransactionService { if (transactionsResponse.data.length > newTransactions.length) { shouldFetchNext = false } + page++; const transactionsToSave: Partial[] = newTransactions.map( (transaction) => ({