tangle-network / dapp

Monorepo for the Tangle ecosystem.
https://app.tangle.tools
Apache License 2.0
29 stars 15 forks source link

[BUG] Incorrect Item Count on Last Page of Pagination #2571

Closed AtelyPham closed 1 week ago

AtelyPham commented 2 weeks ago

Is there an existing issue for this?

Current Behavior

On all paginated tables in the existing dApp, the number of items displayed on the last page is incorrect; it shows the configured items per page instead of the actual items from the paginated data.

Expected Behavior

The last page should accurately display the number of items in the paginated data.

Steps To Reproduce

  1. Navigate to the nomination page.
  2. Scroll to the validator table.
  3. Click on the last page.
  4. Pagination consistently displays Showing 10 out of ..., regardless of the actual number of rows.

This issue occurs with all tables featuring pagination.

Screenshot

CleanShot 2024-09-27 at 16 38 34@2x

Anything else?

No response