Skip to content

Commit

Permalink
fix(client/user-notifications): load last page
Browse files Browse the repository at this point in the history
hasMoreItems has to be called before bumping the current page in order
to work accordingly.
  • Loading branch information
kontrollanten committed Sep 12, 2024
1 parent 542a147 commit 77ea750
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,11 @@ export class UserNotificationsComponent implements OnInit {
onNearOfBottom () {
if (this.infiniteScroll === false) return

this.componentPagination.currentPage++

if (hasMoreItems(this.componentPagination)) {
this.loadNotifications()
}

this.componentPagination.currentPage++
}

markAsRead (notification: UserNotification) {
Expand Down

0 comments on commit 77ea750

Please sign in to comment.