Skip to content

web(use-pagination): clamp total pages count to minimum of 1 #422

Description

@pragmaticAweds

Summary

Renders 'Page 1 of 0' when stream array is empty.

Where

apps/web/src/hooks/use-pagination.ts:20-35

Why this is a real bug, not just lint noise

  1. Affects user experience, functionality, or performance in production.
  2. Needs to be addressed to ensure robustness across all supported devices and Stellar network states.

Fix

Clamp total pages to a minimum of 1.

Acceptance criteria

  • Issue is resolved in apps/web/src/hooks/use-pagination.ts:20-35.
  • No regression introduced in existing test suites.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programbugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions