Skip to content

Commit

Permalink
fix: don't paginate empty page
Browse files Browse the repository at this point in the history
  • Loading branch information
Syn-McJ committed Nov 17, 2023
1 parent 3eb67e0 commit e169da0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class AccountRepository {
.filter { $0.currency.type == .crypto && $0.balance.amount.decimal()! > 0 }
.map { .init(info: $0, authInterop: authInterop) }

if let nextUri = response.pagination.nextURI {
if let nextUri = response.pagination.nextURI, !nextUri.isEmpty {
endpoint = .path(nextUri)
} else {
endpoint = nil
Expand Down

0 comments on commit e169da0

Please sign in to comment.