Skip to content

Conversation

@jinhojang6
Copy link
Contributor

@jinhojang6 jinhojang6 commented Jan 6, 2026

Changes:

  • Restrict the useKarmaRewardsDistributor and useKarmaBalance hook to only work on Status Network Sepolia.
  • Add statusSepolia chain import from wagmi/chains
  • Add chain ID validation to ensure the hook only executes on Status Network Sepolia
  • Update query enabled condition to include network check
  • Persist Karma balance across network switches by fixing query key to Status Network Sepolia

The hook will now be disabled on other networks (Mainnet, Linea, etc.) to prevent unnecessary contract calls and errors.

Copilot AI review requested due to automatic review settings January 6, 2026 15:52
@changeset-bot
Copy link

changeset-bot bot commented Jan 6, 2026

🦋 Changeset detected

Latest commit: a2280a6

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
hub Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Jan 6, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
status-network-hub Ready Ready Preview, Comment Jan 6, 2026 4:22pm
5 Skipped Deployments
Project Deployment Review Updated (UTC)
status-api Ignored Ignored Preview Jan 6, 2026 4:22pm
status-components Ignored Ignored Preview Jan 6, 2026 4:22pm
status-network-website Ignored Ignored Preview Jan 6, 2026 4:22pm
status-portfolio Ignored Ignored Preview Jan 6, 2026 4:22pm
status-website Ignored Ignored Preview Jan 6, 2026 4:22pm

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR restricts the useKarmaRewardsDistributor hook to only function on Status Network Sepolia and re-enables the KarmaButton component in the TopBar.

Key Changes:

  • Added network validation to useKarmaRewardsDistributor to prevent contract calls on unsupported networks
  • Re-enabled KarmaButton display in TopBar for both mobile and desktop layouts
  • Hook now returns undefined data when not on Status Network Sepolia, showing "0" karma balance

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
apps/hub/src/app/_hooks/useKarmaRewardsDistributor.ts Added statusSepolia import and network check to disable queries on non-Sepolia networks
apps/hub/src/app/_components/top-bar.tsx Uncommented KarmaButton components to re-enable karma balance display
.changeset/karma-button-topbar.md Added changeset documenting KarmaButton integration

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Collaborator

@jkbktl jkbktl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙏

@github-project-automation github-project-automation bot moved this from In Progress to Waiting in Web & User Interfaces Jan 6, 2026
@jinhojang6 jinhojang6 self-assigned this Jan 6, 2026
Copy link
Contributor

@JulesFiliot JulesFiliot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@jinhojang6 jinhojang6 merged commit 05bbc8f into main Jan 8, 2026
15 checks passed
@jinhojang6 jinhojang6 deleted the karma-network branch January 8, 2026 06:22
@github-project-automation github-project-automation bot moved this from Waiting to Done in Web & User Interfaces Jan 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants