Skip to content

refactor(web): reuse the shared address formatter in the round hook #258

Description

@karagozemin

Problem

The round-session hook contains a private shortAddr implementation identical to the shared web formatting helper. This duplicate can drift from the formatter used elsewhere in the UI.

Task

Import and use the shared formatter, then remove the local duplicate.

Acceptance criteria

  • The hook uses the shared address formatter.
  • Displayed output remains unchanged.
  • Web tests and typecheck pass.
  • No unrelated hook logic changes.

Suggested implementation prompt

Replace the round-session hook local address formatter with the existing shared helper, remove the duplicate function, run web tests and typecheck, and keep the diff focused.

Activity

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

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardThird CampaignCampaign: Third Campaign

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions