We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac6b84b commit 36a6c42Copy full SHA for 36a6c42
packages/wallet/backend/src/transaction/service.ts
@@ -141,18 +141,20 @@ export class TransactionService implements ITransactionService {
141
page
142
)
143
144
- if (transactionsResponse.data.length === 0) {
145
- return
146
- }
147
-
148
const newTransactions = transactionsResponse.data.filter(
149
(transaction) =>
150
!latestTransaction ||
151
latestTransaction.createdAt.toISOString() <= transaction.createdAt
152
+
+ if (newTransactions.length === 0) {
+ return
+ }
153
154
if (transactionsResponse.data.length > newTransactions.length) {
155
shouldFetchNext = false
156
}
157
158
page++
159
160
const transactionsToSave: Partial<Transaction>[] = newTransactions.map(
0 commit comments